-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-fpm.yml
39 lines (37 loc) · 1.09 KB
/
docker-compose-fpm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
version: "2"
services:
nginx:
image: nginx:alpine
ports:
- "${WEB_PORT}:80"
volumes:
- './config/nginx.conf:/etc/nginx/nginx.conf:ro'
links:
- "wordpress"
volumes_from:
- "wordpress:ro"
environment:
NGINX_PORT: "8080"
wordpress-db:
image: mariadb
volumes:
- './data/wordpress/db:/var/lib/mysql'
environment:
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
MYSQL_ONETIME_PASSWORD: "yes"
MYSQL_DATABASE: "wordpress"
MYSQL_USER: '${WORDPRESS_MYSQL_USER}'
MYSQL_PASSWORD: '${WORDPRESS_MYSQL_PASSWORD}'
wordpress:
image: ellakcy/wordpressswithplugins:alpine-fpm
links:
- wordpress-db
volumes:
- './data/wordpress/www:/var/www/html'
environment:
WORDPRESS_DB_HOST: wordpress-db:/var/run/mysqld/mysqld.sock
WORDPRESS_DB_USER: '${WORDPRESS_MYSQL_USER}'
WORDPRESS_DB_PASSWORD: '${WORDPRESS_MYSQL_PASSWORD}'
WORDPRESS_ADMIN_USERNAME: '${WORDPRESS_ADMIN_USER}'
WORDPRESS_ADMIN_PASSWORD: '${WORDPRESS_ADMIN_PASSWORD}'
WORDPRESS_URL: '${WORDPRESS_URL}'