-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
64 lines (58 loc) · 1.23 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
version: '3.1'
services:
nginx:
restart: always
build:
context: ./nginx
ports:
- "82:82"
- "81:81"
stdin_open: true
tty: true
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- frontend
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
target: development
args:
- APP_PORT
environment:
- APP_PORT
command: ["npm", "run", "dev", "--", "--port", "$APP_PORT", "--host"]
ports:
- '${APP_PORT}:${APP_PORT}'
volumes:
- ./frontend/:/frontend
- /frontend/node_modules
stdin_open: true
tty: true
depends_on:
- wordpress
db:
image: mysql:latest
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
wordpress:
depends_on:
- db
image: wordpress:latest
ports:
- 8000:80
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
volumes:
db_data: {}