-
Notifications
You must be signed in to change notification settings - Fork 24
/
docker-compose.dev.yml
58 lines (54 loc) · 1.35 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
51
52
53
54
55
56
57
58
version: "3.0"
services:
web:
image: nginx
ports:
- "80:80"
volumes:
- ./nginx/:/etc/nginx/conf.d
depends_on:
- frontend
- backend
frontend:
build:
context: ./frontend
dockerfile: dev.Dockerfile
command: >
sh -c "npm update && npm install && npm start"
volumes:
- ./frontend/:/app/
ports:
- "3000:3000"
environment:
- NODE_ENV=development
backend:
build:
context: ./backend
dockerfile: dev.Dockerfile
volumes:
- ./backend/:/code/
ports:
- "8000:8000"
depends_on:
- db
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: formica
MYSQL_USER: newuser
MYSQL_PASSWORD: user_password
bot:
build:
context: ./bot
dockerfile: dev.Dockerfile
command: >
sh -c "pip install -r requirements.txt && python3 formica_bot.py"
volumes:
- ./bot/:/bot/
ports:
- "8080:8080"
depends_on:
- backend