-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (42 loc) · 875 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (42 loc) · 875 Bytes
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
version: '2'
services:
mysql:
build: ./database
ports:
- "3333:3306"
volumes:
- ./database:/db:rw
environment:
MYSQL_ROOT_PASSWORD: storm_root_password
MYSQL_DATABASE: storm_database
MYSQL_USER: storm_user
MYSQL_PASSWORD: storm_password
entrypoint: /db/run.sh
backend:
build: ./backend
ports:
- "8081:8080"
links:
- "mysql:mysql"
volumes:
- ./backend/sample:/sample
environment:
mysql: mysql
entrypoint: python3 -m sample.server
frontend:
build: ./frontend
volumes:
- ./frontend/src/app:/app/src/app:ro
ports:
- "8080:8080"
entrypoint: /app/run.sh
nginx:
image: nginx
ports:
- "80:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
links:
- backend
- frontend
entrypoint: nginx