-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
43 lines (40 loc) · 1.04 KB
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:
backend:
build:
context: .
dockerfile: backend/Dockerfile
ports:
- "5000:5000"
volumes:
- ./backend:/app
- ./settings.yml:/etc/abbey/settings.yml:ro
- ./.env:/etc/abbey/.env
- ./file-storage:/app/app/static
- ./backend/supervisord.conf:/etc/supervisor/conf.d/supervisord.conf
environment:
- PYTHONUNBUFFERED=true
depends_on:
- mysql
frontend:
build:
context: .
dockerfile: frontend/Dockerfile
ports:
- "3000:3000"
volumes:
- ./frontend:/frontend-build
- ./settings.yml:/etc/abbey/settings.yml:ro
- ./.env:/etc/abbey/.env:ro
- /frontend-build/node_modules # Any modifications to node_modules should be done from inside the container!
mysql:
image: mysql:8
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=learn
ports:
- "3306:3306"
volumes:
- mysql-data:/var/lib/mysql
- ./mysql-init:/docker-entrypoint-initdb.d
volumes:
mysql-data: