-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
88 lines (84 loc) · 2.29 KB
/
docker-compose.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
services:
# db:
# container_name: ${COMPOSE_PROJECT_NAME}-db
# image: mariadb:10.6.4-focal
# command: '--default-authentication-plugin=mysql_native_password'
# volumes:
# - ./db_data:/var/lib/mysql
# networks:
# - wordpress
# - pma_net
# restart: always
# environment:
# - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
# - MYSQL_DATABASE=${WORDPRESS_DB_NAME}
# - MYSQL_USER=${WORDPRESS_DB_USER}
# - MYSQL_PASSWORD=${WORDPRESS_DB_PASSWORD}
# # expose:
# # - 3306
# # - 33060
wordpress:
container_name: ${COMPOSE_PROJECT_NAME}-wp
image: wordpress:latest
# build:
# context: .
# args:
# PHP_VER: ${PHP_VER}
# WP_TAG: ${WP_TAG}
volumes:
- ./wp-content:/var/www/html/wp-content
- ./custom-limits.ini:/usr/local/etc/php/conf.d/custom-limits.ini
networks:
# - wordpress
- nginx-proxy-man
- redis-network
- db-network
# ports:
# - 80:80
restart: always
environment:
- WORDPRESS_DB_HOST=${WORDPRESS_DB_HOST}
- WORDPRESS_DB_USER=${WORDPRESS_DB_USER}
- WORDPRESS_DB_PASSWORD=${WORDPRESS_DB_PASSWORD}
- WORDPRESS_DB_NAME=${WORDPRESS_DB_NAME}
- WORDPRESS_CONFIG_EXTRA=${WORDPRESS_CONFIG_EXTRA}
mem_limit: ${MEM_LIMIT}
# depends_on:
# - ${WORDPRESS_DB_HOST}
# - redis
# nginx:
# container_name: ${COMPOSE_PROJECT_NAME}-nginx
# image: nginx:stable-alpine
# restart: unless-stopped
# networks:
# - wordpress
# - default
# # ports:
# # - 85:80
# # - 443:443
# volumes:
# - ./nginx/conf:/etc/nginx/conf.d
# - ./wp_data:/var/www/html
# depends_on:
# - wordpress
# redis:
# container_name: ${COMPOSE_PROJECT_NAME}-redis
# image: redis:${REDIS_VER}
# restart: always
# networks:
# - wordpress
# volumes:
# wp-content:
networks:
nginx-proxy-man:
external: true
# name: nginx-proxy-man
# pma_net:
# external: true
# name: pma-external
# wordpress:
# internal: true
redis-network:
external: true
db-network:
external: true