-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathswarm.yaml
86 lines (81 loc) · 2.15 KB
/
swarm.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
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
version: '3.2'
volumes:
caddy_config:
caddy_data:
external: true
app_postgres_volume:
services:
cat-fostering-api:
image: ghcr.io/getlarge/cat-fostering/cat-fostering-api:latest
environment:
- ORY_KETO_ADMIN_URL=https://determined-kare-xyskz239is.projects.oryapis.com
- ORY_KETO_PUBLIC_URL=https://determined-kare-xyskz239is.projects.oryapis.com
- ORY_KRATOS_ADMIN_URL=https://determined-kare-xyskz239is.projects.oryapis.com
- ORY_KRATOS_PUBLIC_URL=https://determined-kare-xyskz239is.projects.oryapis.com
- ORY_ACTION_API_KEY=/run/secrets/ory_action_api_key
- ORY_KRATOS_API_KEY=/run/secrets/ory_network_api_key
- ORY_KETO_API_KEY=/run/secrets/ory_network_api_key
- PORT=3000
- POSTGRES_URL=postgres://postgres:5432
- POSTGRES_DB=cat_fostering
- POSTGRES_USER=dbuser
- POSTGRES_PASSWORD=/run/secrets/pg_db_password
secrets:
- ory_action_api_key
- ory_network_api_key
- pg_db_password
ports:
- '3000:3000'
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
caddy:
image: ghcr.io/getlarge/cat-fostering/caddy:latest
ports:
- '8080:80'
- '4443:443'
volumes:
- caddy_data:/data
- caddy_config:/config
environment:
- BACKEND_DOMAIN=backend
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
postgres:
image: postgres:16
ports:
- '5432:5432'
environment:
- POSTGRES_DB=cat_fostering
- POSTGRES_USER=dbuser
- POSTGRES_PASSWORD_FILE=/run/secrets/pg_db_password
secrets:
- pg_db_password
volumes:
- app_postgres_volume:/var/lib/postgresql/data
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
secrets:
ory_action_api_key:
external: true
ory_network_api_key:
external: true
pg_db_password:
external: true