forked from open-plan-tool/simulation-server
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (65 loc) · 1.59 KB
/
docker-compose.yml
File metadata and controls
66 lines (65 loc) · 1.59 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
66
version: "3"
services:
web:
environment:
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
build:
# `context` should be a path to a directory containing a Dockerfile
context: .
dockerfile: ./fastapi_app/Dockerfile
restart: unless-stopped
ports:
- "5001:5001"
depends_on:
- redis
networks:
# - caddy_network
- sim_network
worker-supply:
environment:
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- CELERY_TASK_NAME=supply
build:
# context should be the name of the folder which define the tasks
context: .
dockerfile: ./task_queue/Dockerfile
depends_on:
- redis
networks:
- sim_network
worker-grid:
environment:
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- CELERY_TASK_NAME=grid
build:
# context should be the name of the folder which define the tasks
context: .
dockerfile: ./task_queue/Dockerfile
depends_on:
- redis
networks:
- sim_network
worker-grid-dev:
environment:
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- CELERY_TASK_NAME=grid_dev
build:
context: .
dockerfile: ./task_queue/Dockerfile
depends_on:
- redis
networks:
- sim_network
redis:
image: redis
networks:
- sim_network
networks:
# caddy_network:
# external:
# name: docker_caddy_network
sim_network: