-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
46 lines (44 loc) · 985 Bytes
/
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
version: "3.8"
services:
###################################################################
# Services
###################################################################
fastapi:
image: mbari/fastapi-vss:${GIT_VERSION}
container_name: fastapi-vss
healthcheck:
test: [ "CMD", "curl", "-f", "http://127.0.0.1:8000/health" ]
env_file:
- .env
ports:
- "8000:80"
environment:
- CONFIG_PATH=/config
volumes:
- ./config:/config
user: ${MLDEVOPS_GID}:${MLDEVOPS_UID}
restart: always
depends_on:
- redis
networks:
- vss
redis:
env_file:
- .env
command:
- /bin/sh
- -c
- redis-server --requirepass "$${REDIS_PASSWD:?REDIS_PASSWD variable is not set}"
image: redis/redis-stack-server
container_name: redis
ports:
- "6379:6379"
volumes:
- redis-data:/data
restart: always
networks:
- vss
volumes:
redis-data:
networks:
vss: