-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
58 lines (57 loc) · 1.13 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
56
57
58
version: '3.8'
services:
emulate:
build:
context: .
dockerfile: ./EmulateDockerfile
command: ["python3", "emulate_queue.py"]
restart: always
env_file:
- ./emulate/.env.dev
depends_on:
- redis
- backend
sender:
build:
context: .
dockerfile: ./EmulateDockerfile
command: ["python3", "sender.py"]
ports:
- 5678:5678
restart: always
env_file:
- ./emulate/.env.dev
depends_on:
- redis
- backend
udp_server:
build:
context: .
dockerfile: ./EmulateDockerfile
command: ["python3", "udp_server.py"]
restart: always
ports:
- 20002:20002/udp
env_file:
- ./emulate/.env.dev
depends_on:
- redis
- backend
backend:
build: ./backend
command: ["python", "manage.py", "runserver", "0.0.0.0:8000"]
volumes:
- ./backend/:/usr/src/app/
ports:
- 8000:8000
env_file:
- ./backend/.env.dev
depends_on:
- database
- redis
database:
image: postgres:9.6.21-alpine
env_file:
- ./backend/.env.dev
redis:
image: redis:6.2.1-alpine