forked from vcon-dev/vcon-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
88 lines (80 loc) · 1.87 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version: "3.3"
networks:
conserver:
external: true
services:
conserver:
container_name: "conserver"
build:
dockerfile: ./docker/Dockerfile
context: .
command: "python ./server/main.py"
volumes:
- .:/app
depends_on:
- redis
env_file:
- .env
stop_grace_period: 60s
networks:
- conserver
api:
container_name: "api"
build:
dockerfile: ./docker/Dockerfile
context: .
command: /bin/bash -c "poetry run uvicorn server.api:app --host 0.0.0.0 --port 8000"
volumes:
- .:/app
ports:
- "${CONSERVER_EXTERNAL_PORT:-8000}:8000"
depends_on:
- redis
# - certbot
env_file:
- .env
networks:
- conserver
redis:
container_name: "redis"
image: "redis/redis-stack:latest"
ports:
- "${REDIS_EXTERNAL_PORT:-8001}:8001"
environment:
REDIS_ARGS: --save 20 1
mem_limit: 1gb # <===== IMPORTANT!!!! We're overriding this in the docker-compose.override.yml file
volumes:
- ./.data:/data
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
interval: 30s
timeout: 10s
retries: 5
networks:
- conserver
# certbot:
# container_name: "certbot"
# image: certbot/certbot
# ports:
# - "80:80"
# volumes:
# - certbot-data:/etc/letsencrypt
# command: certonly --standalone --agree-tos --email ${CERTBOT_EMAIL} --no-self-upgrade --non-interactive -d ${SERVER_NAME}
# networks:
# - conserver
# nginx:
# container_name: "nginx"
# image: nginx:latest
# ports:
# - "443:443"
# volumes:
# - certbot-data:/etc/letsencrypt
# - ./nginx.conf:/etc/nginx/nginx.conf
# depends_on:
# - certbot
# networks:
# - conserver
# environment:
# - SERVER_NAME=${SERVER_NAME}
# volumes:
# certbot-data: