-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker.compose.dev.yaml
More file actions
65 lines (61 loc) · 1.37 KB
/
Copy pathdocker.compose.dev.yaml
File metadata and controls
65 lines (61 loc) · 1.37 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: '3.7'
services:
redis:
container_name: redis_py
image: redis:latest
hostname: redis
ports:
- 6379:6379
networks:
- pytropolis
extra_hosts:
- "host.docker.internal:host-gateway"
worker:
build:
context: .
dockerfile: ./docker/Dockerfile
environment:
- PYT_HOME_DIR=/opt/PYT
- PYT_EXECUTION_DIR=/opt/PYT/execution
- PYT_LOG_DIR=/opt/PYT/log
- PYT_VENV_CONTAINER=/opt/PYT/venv
- PYT_REDIS_HOST=redis
volumes:
- ./volumes/PYT:/opt/PYT
depends_on:
- redis
command: ["python", "app.py", "run_worker"]
networks:
- pytropolis
extra_hosts:
- "host.docker.internal:host-gateway"
deploy:
mode: replicated
replicas: 3
web:
container_name: web
build:
context: .
dockerfile: ./docker/Dockerfile
ports:
- 5000:5000
environment:
- PYT_HOME_DIR=/opt/PYT
- PYT_EXECUTION_DIR=/opt/PYT/execution
- PYT_LOG_DIR=/opt/PYT/log
- PYT_VENV_CONTAINER=/opt/PYT/venv
- PYT_REDIS_HOST=redis
- FLASK_RUN_HOST=0.0.0.0
volumes:
- ./volumes/PYT:/opt/PYT
depends_on:
- redis
command: ["python", "app.py", "run"]
networks:
- pytropolis
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
pytropolis:
external: true
name: pytropolis