-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
46 lines (46 loc) · 1.05 KB
/
compose.yaml
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
services:
api:
build:
context: ./backend
image: ghcr.io/flipdot/snatch-backend
volumes:
- .:/code
environment:
- SENTRY_DSN=${SENTRY_DSN}
- REDIS_HOST=db
# required to make SSL redirection work. IMHO not worth figuring out the real IP: https://stackoverflow.com/a/69369838/458274
- FORWARDED_ALLOW_IPS=*
depends_on:
- db
frontend:
image: ghcr.io/flipdot/snatch-frontend
depends_on:
- api
db:
image: redis:7-alpine
command: redis-server --save 60 1 --loglevel warning
volumes:
- redis-data:/data
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 5s
timeout: 5s
retries: 5
caddy:
image: caddy:2.8.4-alpine
ports:
- "8000:8000"
# - "443:443"
volumes:
- "./infrastructure/Caddyfile:/etc/caddy/Caddyfile"
- "caddy-data:/data"
- "static_files:/mnt/static"
# - "media_files:/mnt/media"
depends_on:
- api
- frontend
volumes:
redis-data:
caddy-data:
static_files:
# media_files: