-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstack.yml
68 lines (62 loc) · 1.5 KB
/
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
64
65
66
67
68
version: "3.9"
services:
redis:
image: redis:alpine
volumes:
- redis_data:/data
command: ["redis-server", "--save", "60", "1", "--appendonly", "yes"]
networks:
- scary_net
deploy:
replicas: 1
scary_aspnet:
secrets:
- recaptcha_secret_key
- dp-cert.pfx
- dp_cert_password
environment:
- ASPNETCORE_URLS=http://0.0.0.0:8000
- ASPNETCORE_ENVIRONMENT=Production
- ScaryCave__RedisConnectionString=redis:6379
- ScaryCave__ReCaptchaSecretKeyFile=/run/secrets/recaptcha_secret_key
- ScaryCave__DataProtectionKeyPath=/var/data_protection_keys
- ScaryCave__DataProtectionCertFile=/run/secrets/dp-cert.pfx
- ScaryCave__DataProtectionCertPasswordFile=/run/secrets/dp_cert_password
volumes:
- data_protection:/var/data_protection_keys
image: trasa/scary_aspnet:latest
ports:
- "8000:8000"
networks:
- scary_net
deploy:
replicas: 1
depends_on:
- redis
scary_next:
secrets:
- recaptcha_secret_key
environment:
- NEXT_PUBLIC_RECAPTCHA_SITE_KEY_FILE=/run/secrets/recaptcha_secret_key
image: trasa/scary_next:latest
networks:
- scary_net
ports:
- "3000:3000"
deploy:
replicas: 1
depends_on:
- scary_aspnet
volumes:
data_protection:
redis_data:
networks:
scary_net:
driver: overlay
secrets:
recaptcha_secret_key:
external: true
dp-cert.pfx:
external: true
dp_cert_password:
external: true