-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (45 loc) · 969 Bytes
/
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
version: '3'
services:
db:
restart: always
image: mysql:8
ports:
- '3306:3306'
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_DATABASE: 'app_db'
MYSQL_ROOT_PASSWORD: 'password'
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 5
web:
restart: unless-stopped
build: .
volumes:
- .:/code
ports:
- "8000:8000"
depends_on:
db:
condition: service_healthy
frontend:
tty: true
build: ./frontend
volumes:
- ./frontend:/app/frontend
- node-modules:/app/frontend/node_modules
ports:
- "3000:3000"
nginx:
image: nginx:latest
ports:
- 80:8080
volumes:
- ./config/nginx-proxy.conf:/etc/nginx/conf.d/default.conf:ro
- ./frontend/static:/var/www/frontend
depends_on:
- web
- frontend
volumes:
node-modules: