-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
88 lines (84 loc) · 2.04 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
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
87
88
services:
postgres:
image: postgres:16
environment:
POSTGRES_USER: danceblue
POSTGRES_PASSWORD: danceblue
POSTGRES_DB: danceblue
attach: false
volumes:
- database:/var/lib/postgresql/data
networks:
database:
aliases:
- postgres
monitoring:
restart: unless-stopped
server:
build:
context: .
target: server
image: ghcr.io/ukdanceblue/app-server:${VERSION:-latest}
networks:
proxy:
aliases:
- ${HOST_PREFIX:-}-server
monitoring:
database:
depends_on:
- postgres
environment:
NODE_ENV: ${NODE_ENV:-production}
SERVE_PATH: /data/serve
UPLOAD_PATH: /data/serve/uploads
MAX_FILE_SIZE: 200
LOG_DIR: /data/logs
DATABASE_URL: postgres://danceblue:danceblue@danceblue-${HOST_PREFIX:-}-postgres-1:5432/danceblue?schema=danceblue
SERVE_ORIGIN: https://${HOST_PREFIX:-}.danceblue.org
LOGGING_LEVEL: ${LOGGING_LEVEL:-info}
SUPER_ADMIN_LINKBLUE: ${SUPER_ADMIN_LINKBLUE}
INSTAGRAM_API_KEY: ${INSTAGRAM_API_KEY}
secrets:
- cookie_secret
- jwt_secret
- ms_client_id
- ms_client_secret
- expo_access_token
- dbfunds_api_origin
- dbfunds_api_key
volumes:
- content:/data/serve
restart: unless-stopped
networks:
proxy:
external: true
name: proxy
database:
internal: true
monitoring:
external: true
name: monitoring
volumes:
content:
driver: local
database:
driver: local
# Secrets from environment variables (i.e. var: environment: VAR)
# secrets:
# token:
# environment: "OAUTH_TOKEN"
secrets:
cookie_secret:
environment: "COOKIE_SECRET"
jwt_secret:
environment: "JWT_SECRET"
ms_client_id:
environment: "MS_CLIENT_ID"
ms_client_secret:
file: ${MS_CLIENT_SECRET_FILE:?error}
expo_access_token:
file: ${EXPO_ACCESS_TOKEN_FILE:?error}
dbfunds_api_origin:
environment: "DBFUNDS_API_ORIGIN"
dbfunds_api_key:
file: ${DBFUNDS_API_KEY_FILE:?error}