-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
50 lines (50 loc) · 1.18 KB
/
docker-compose-dev.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.3"
services:
mysql-server:
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password
restart: always
ports:
- "3306:3306"
- "33060:33060"
environment:
MYSQL_ROOT_PASSWORD: ${mysql_root_pass}
MYSQL_DATABASE: mydb
MYSQL_USER: ${mysql_user}
MYSQL_PASSWORD: ${mysql_pass}
backend:
build: ./backend/dev/
deploy:
restart_policy:
condition: on-failure
max_attempts: 3
environment:
mysql_user: ${mysql_user}
mysql_pass: ${mysql_pass}
TWILIO_AUTH_TOKEN: ${TWILIO_AUTH_TOKEN}
TWILIO_SID: ${TWILIO_SID}
ports:
- "8000:8000"
volumes:
- .:/app
depends_on:
- mysql-server
command: ["./backend/start_back-dev"]
frontend:
build:
context: ./frontend/
dockerfile: Dockerfile
deploy:
restart_policy:
condition: on-failure
max_attempts: 3
environment:
- CHOKIDAR_USEPOLLING=true
ports:
- "3000:3000"
volumes:
- './frontend:/frontend'
- '/frontend/node_modules'
depends_on:
- mysql-server
- backend