-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (30 loc) · 862 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (30 loc) · 862 Bytes
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
services:
wordpress:
container_name: ${COMPOSE_PROJECT_NAME}-wp
build:
context: .
args:
WP_TAG: ${WP_TAG}
volumes:
- ./wp-content:/var/www/html/wp-content
- ./custom-limits.ini:/usr/local/etc/php/conf.d/custom-limits.ini
- ./error-logging.ini:/usr/local/etc/php/conf.d/error-logging.ini
networks:
- nginx-proxy-man
- redis-network
- db-network
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}
networks:
nginx-proxy-man:
external: true
redis-network:
external: true
db-network:
external: true