-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
64 lines (60 loc) · 1.51 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
60
61
62
63
64
version: "3.8"
services:
signs:
build:
context: .
target: nonvital-vital-signs
dockerfile: Dockerfile
image: imagination-ai/nonvital-vital-signs
volumes:
- ./src/signs:/applications/signs
ports:
- "8080:8080"
networks:
- backend
restart: "no"
environment:
- STORAGE_EMULATOR_HOST=http://mock-cloud-storage:4443
- ENVIRONMENT=docker
- NOTION_SECRET_OB=""
depends_on:
- mock-cloud-storage
entrypoint: [ "gunicorn", 'signs.main:app', '--reload', '--bind', '0.0.0.0:8000',
'--log-level', 'info', '--access-logfile', '-',
'-k', 'uvicorn.workers.UvicornWorker',
]
deploy:
replicas: 1
restart_policy:
condition: on-failure
mock-cloud-storage:
image: fsouza/fake-gcs-server
networks:
- backend
ports:
- "4443:4443"
volumes:
- ./fake-gcs:/data # bucket
command: "-scheme=http"
# (TODO: osman) Uncomment when we need it.
#localstack:
#image: localstack/localstack:0.11.1
#networks:
#- backend
#ports:
#- "4566:4566"
#- "${PORT_WEB_UI:-8080}:${PORT_WEB_UI:-8080}"
#environment:
#- SERVICES=sqs,s3
#- DOCKER_HOST=unix:///var/run/docker.sock
#- DATA_DIR=/tmp/localstack/data
#- HOSTNAME_EXTERNAL=localstack
#- AWS_REGION=us-east-1
#- AWS_DEFAULT_REGION=us-east-1
#- AWS_SECRET_ACCESS_KEY=AFakeKey
#- AWS_ACESSS_KEY_ID=AFakeId
#- DEBUG=${DEBUG- }
networks:
backend:
volumes:
db-data: {}