-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcompose-stack.yml
63 lines (60 loc) · 1.63 KB
/
compose-stack.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
services:
website:
image: noahfraiture/optiguide:prod
labels :
- "traefik.enable=true"
- "traefik.http.routers.optiguide.rule=Host(`optiguide.dev`)"
- "traefik.http.routers.optiguide.entrypoints=websecure"
- "traefik.http.routers.optiguide.tls.certresolver=myresolver"
environment:
- GOOGLE_CALLBACK_URL=https://optiguide.dev/auth/google/callback
- GOOGLE_ID_FILE=/run/secrets/google-id
- GOOGLE_SECRET_FILE=/run/secrets/google-secret
- SESSION_SECRET_FILE=/run/secrets/session-secret
- POSTGRES_USER=optiguide
- POSTGRES_PASSWORD_FILE=/run/secrets/optiguide-postgres-password
- POSTGRES_DB=optiguide
- POSTGRES_HOST=optiguide_postgres
secrets:
- optiguide-postgres-password
- google-id
- google-secret
- session-secret
deploy:
update_config:
order: start-first
depends_on:
- optiguide_postgres
networks:
- traefik
optiguide_postgres:
image: postgres:17-alpine3.20
environment:
- POSTGRES_USER=optiguide
- POSTGRES_PASSWORD_FILE=/run/secrets/optiguide-postgres-password
- POSTGRES_DB=optiguide
secrets:
- optiguide-postgres-password
healthcheck:
test: ["CMD-SHELL", "pg_isready -U optiguide"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- traefik
volumes:
postgres_data:
networks:
traefik:
external: true
secrets:
optiguide-postgres-password:
external: true
google-id:
external: true
google-secret:
external: true
session-secret:
external: true