-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
59 lines (58 loc) · 1.46 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
59
version: "3"
services:
web:
environment:
- MVS_DEV_VERSION=${MVS_DEV_VERSION}
- MVS_OPEN_PLAN_VERSION=${MVS_OPEN_PLAN_VERSION}
build:
args:
# this should be in a .env file in the root of the repository
mvs_version: ${MVS_DEV_VERSION}
# `context` should be a path to a directory containing a Dockerfile
context: ./fastapi_app
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "5001:5001"
depends_on:
- redis
networks:
# - caddy_network
- sim_network
worker-dev:
environment:
- CELERY_TASK_NAME=dev
build:
args:
# this should be in a .env file in the root of the repository
mvs_version: ${MVS_DEV_VERSION}
# context should be the name of the folder which define the tasks
context: task_queue
dockerfile: Dockerfile_dev
depends_on:
- redis
networks:
- sim_network
worker-open-plan:
environment:
- CELERY_TASK_NAME=open_plan
build:
args:
# this should be in a .env file in the root of the repository
mvs_version: ${MVS_OPEN_PLAN_VERSION}
# context should be the name of the folder which define the tasks
context: task_queue
dockerfile: Dockerfile
depends_on:
- redis
networks:
- sim_network
redis:
image: redis
networks:
- sim_network
networks:
# caddy_network:
# external:
# name: docker_caddy_network
sim_network: