-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-production.yml
46 lines (39 loc) · 1.05 KB
/
docker-compose-production.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
40
41
42
43
44
45
46
# image,docs: https://hub.docker.com/_/wordpress/
version: '3.3'
services:
wordpress:
image: wordpress:${APP_VERSION}
container_name: ${APP_CONTAINER_NAME}
restart: always
ports:
- ${APP_PORT}:80
environment:
WORDPRESS_DB_HOST: mysql
WORDPRESS_DB_USER: ${DB_MYSQL_USER}
WORDPRESS_DB_PASSWORD: ${DB_MYSQL_PASSWORD}
WORDPRESS_DB_NAME: ${DB_MYSQL_NAME}
WORDPRESS_DEBUG: 1
volumes:
- wordpress:/var/www/html
mysql:
image: mariadb:${DB_MYSQL_VERSION}
container_name: wordpress-mysql
restart: always
ports:
- ${DB_MYSQL_PORT}:3306
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
volumes:
- ${VOLUMES_PATH_PREFIX}/mysql/mysql_data:/var/lib/mysql
environment:
MYSQL_DATABASE: ${DB_MYSQL_NAME}
MYSQL_USER: ${DB_MYSQL_USER}
MYSQL_PASSWORD: ${DB_MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_MYSQL_PASSWORD}
volumes:
wordpress:
driver: local
mysql:
driver: local
networks:
wordpress:
driver: bridge