-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (55 loc) · 1.25 KB
/
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
51
52
53
54
55
version: "3"
services:
server:
build:
context: .
dockerfile: Dockerfile
ports:
- 1234:1234
volumes:
- ./server:/app/server
command: nodemon --watch /app/server --ext py --exec python /app/server/server.py
tty: true
mysql:
image: mysql:latest
restart: always
environment:
MYSQL_ROOT_PASSWORD: pass
MYSQL_DATABASE: fsmap
MYSQL_USER: admin
MYSQL_PASSWORD: password
volumes:
- ./mysql/init/:/docker-entrypoint-initdb.d/
ports:
- 3306:3306
tty: true
worker1:
build:
context: .
dockerfile: Dockerfile
ports:
- 1235:1235
volumes:
- ./worker:/app/worker
command: nodemon --watch /app/worker --ext py --exec python /app/worker/worker.py 1235
tty: true
worker2:
build:
context: .
dockerfile: Dockerfile
ports:
- 1236:1236
volumes:
- ./worker:/app/worker
command: nodemon --watch /app/worker --ext py --exec python /app/worker/worker.py 1236
tty: true
worker3:
build:
context: .
dockerfile: Dockerfile
ports:
- 1237:1237
volumes:
- ./worker:/app/worker
command: nodemon --watch /app/worker --ext py --exec python /app/worker/worker.py 1237
tty: true