-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose.yml
72 lines (69 loc) · 2.41 KB
/
compose.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
69
70
71
72
services:
db:
image: postgres
volumes:
- db:/var/lib/postgresql/data
environment:
- POSTGRES_DB=${POSTGRES_NAME}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
profiles:
- dev
- prod
restart: always
app_prod:
build:
context: ./src
dockerfile: Dockerfile.prod
ports:
- '${PORT}:3000'
environment:
PORT: 3000
HOST: ${HOST}
BASE_URL: ${BASE_URL}
GIT_COMMIT: ${GIT_COMMIT}
SESSION_SECRET: ${SESSION_SECRET}
POSTGRES_HOST: ${POSTGRES_HOST}
POSTGRES_NAME: ${POSTGRES_NAME}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}/${POSTGRES_NAME}
CLIENT_ID: ${CLIENT_ID}
CLIENT_SECRET: ${CLIENT_SECRET}
RATE_LIMIT: ${RATE_LIMIT}
CONTACT_WEBHOOK_URL: ${CONTACT_WEBHOOK_URL}
COUNCIL_SERVER_ISSUE_WEBHOOK_URL: ${COUNCIL_SERVER_ISSUE_WEBHOOK_URL}
STUDENT_SERVER_ISSUE_WEBHOOK_URL: ${STUDENT_SERVER_ISSUE_WEBHOOK_URL}
SUPER_ADMIN: ${SUPER_ADMIN}
profiles:
- prod
restart: always
app_dev:
build:
context: ./src
dockerfile: Dockerfile.dev
ports:
- '5173:5173'
environment:
PORT: 5173
GIT_COMMIT: ${GIT_COMMIT}
SESSION_SECRET: ${SESSION_SECRET}
POSTGRES_HOST: ${POSTGRES_HOST}
POSTGRES_NAME: ${POSTGRES_NAME}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}/${POSTGRES_NAME}
CLIENT_ID: ${CLIENT_ID}
CLIENT_SECRET: ${CLIENT_SECRET}
RATE_LIMIT: ${RATE_LIMIT}
BASE_URL: ${BASE_URL}
CONTACT_WEBHOOK_URL: ${CONTACT_WEBHOOK_URL}
COUNCIL_SERVER_ISSUE_WEBHOOK_URL: ${COUNCIL_SERVER_ISSUE_WEBHOOK_URL}
STUDENT_SERVER_ISSUE_WEBHOOK_URL: ${STUDENT_SERVER_ISSUE_WEBHOOK_URL}
SUPER_ADMIN: ${SUPER_ADMIN}
volumes:
- ./src:/app
profiles:
- dev
volumes:
db: