-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.aws.yml
54 lines (47 loc) · 2.12 KB
/
docker-compose.aws.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
version: '2'
# Usage: docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
# For hints on proper values for environment variables, see docker-compose.override.yml
# DO NOT COMMIT PRODUCTION SECRETS TO ANY REPOSITORY
services:
nginx:
environment:
JWT_SECRET: ${JWT_SECRET}
SERVER_NAME: ${REGISTRATION_API_DOMAIN_NAME}
SSL_CERTIFICATE: /etc/letsencrypt/live/chicagoworldcon.org/fullchain.pem
SSL_CERTIFICATE_KEY: /etc/letsencrypt/live/chicagoworldcon.org/privkey.pem
ports:
- "80:80"
- "443:443"
restart: always
volumes:
- /opt/registration/hugo:/srv/hugo-packet:ro
- /opt/letsencrypt/etc:/etc/letsencrypt:ro
hugo:
environment:
CORS_ORIGIN: https://${REGISTRATION_API_DOMAIN_NAME},https://${REGISTRATION_WWW_DOMAIN_NAME},https://${ADMIN_WWW_DOMAIN_NAME},http://localhost:8080,https://localhost:8080,http://192.168.1.42:8080
DATABASE_URL: postgres://hugo:${HUGO_PG_PASSWORD}@${DB_HOSTNAME}/${DB_NAME}
JWT_SECRET: ${JWT_SECRET}
SESSION_SECRET: ${SESSION_SECRET}
NODE_ENV: production
restart: always
members:
environment:
CORS_ORIGIN: https://${REGISTRATION_API_DOMAIN_NAME},https://${REGISTRATION_WWW_DOMAIN_NAME},https://${ADMIN_WWW_DOMAIN_NAME},http://localhost:8080,https://localhost:8080,http://192.168.1.42:8080
DATABASE_URL: postgres://members:${KANSA_PG_PASSWORD}@${DB_HOSTNAME}/${DB_NAME}
DEBUG: kansa:errors
SESSION_SECRET: ${SESSION_SECRET}
STRIPE_SECRET_APIKEY: ${STRIPE_SECRET_API_KEY}
NODE_ENV: production
restart: always
art:
environment:
CORS_ORIGIN: https://${REGISTRATION_API_DOMAIN_NAME},https://${REGISTRATION_WWW_DOMAIN_NAME},https://${ADMIN_WWW_DOMAIN_NAME},http://localhost:8080,https://localhost:8080,http://192.168.1.42:8080
DATABASE_URL: postgres://raami:${RAAMI_PG_PASSWORD}@${DB_HOSTNAME}/${DB_NAME}
SESSION_SECRET: ${SESSION_SECRET}
NODE_ENV: production
kyyhky:
environment:
LOGIN_URI_ROOT: https://${REGISTRATION_WWW_DOMAIN_NAME}/login
SENDGRID_APIKEY: ${SENDGRID_API_KEY}
NODE_ENV: production
restart: always