-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
43 lines (36 loc) · 797 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
43 lines (36 loc) · 797 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
40
41
42
43
services:
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
container_name: ${APP_NAME}-nginx
restart: always
depends_on:
- wordpress
expose:
- '80'
- '443'
- '8080'
# ports:
# - '80:80'
volumes:
- nginx/logs:/var/log/nginx
- wordpress-files:/var/www/html:rw
wordpress:
user: '33:33'
build:
context: ./wordpress
dockerfile: Dockerfile
restart: always
expose:
- '9000'
environment:
ENVIRONMENT: ${ENVIRONMENT}
DB_HOST: ${DB_HOST}
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
DB_NAME: ${DB_NAME}
WORDPRESS_TABLE_PREFIX: ${WP_DB_PREFIX}
WORDPRESS_DEBUG: ${WP_DEBUG}
volumes:
- wordpress-files:/var/www/html:rw