This repository has been archived by the owner on Jul 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
74 lines (69 loc) · 2.37 KB
/
docker-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
73
74
version: "3.3"
services:
## shared/managed services
postgres:
image: postgres:13
environment:
# NOTE: running with the assumption that local dev will not have read replication
# (meaning that the read & write dbs will be the same)
POSTGRES_PASSWORD: ${WRITE_DB_PASS}
volumes:
- ./pgdata:/var/lib/postgresql/data
ports:
- 5432:5432
redis:
image: redis:6
ports:
- 6379:6379
## application services
interns-backend:
image: interns-backend:latest
ports:
- 10000:${APP_PORT}
environment:
- APP_ENV=${APP_ENV}
- APP_COMPONENT=${APP_COMPONENT}
- APP_HOST=${APP_HOST}
- APP_PORT=${APP_PORT}
- APP_LOG_LEVEL=${APP_LOG_LEVEL}
- SERVICE_READINESS_TIMEOUT=${SERVICE_READINESS_TIMEOUT}
- READ_DB_SCHEME=${READ_DB_SCHEME}
- READ_DB_HOST=${READ_DB_HOST}
- READ_DB_PORT=${READ_DB_PORT}
- READ_DB_USER=${READ_DB_USER}
- READ_DB_PASS=${READ_DB_PASS}
- READ_DB_NAME=${READ_DB_NAME}
- READ_DB_USE_SSL=${READ_DB_USE_SSL}
- READ_DB_CA_CERTIFICATE_BASE64=${READ_DB_CA_CERTIFICATE_BASE64}
- INITIALLY_AVAILABLE_READ_DB=${INITIALLY_AVAILABLE_READ_DB}
- WRITE_DB_SCHEME=${WRITE_DB_SCHEME}
- WRITE_DB_HOST=${WRITE_DB_HOST}
- WRITE_DB_PORT=${WRITE_DB_PORT}
- WRITE_DB_USER=${WRITE_DB_USER}
- WRITE_DB_PASS=${WRITE_DB_PASS}
- WRITE_DB_NAME=${WRITE_DB_NAME}
- WRITE_DB_USE_SSL=${WRITE_DB_USE_SSL}
- WRITE_DB_CA_CERTIFICATE_BASE64=${WRITE_DB_CA_CERTIFICATE_BASE64}
- INITIALLY_AVAILABLE_WRITE_DB=${INITIALLY_AVAILABLE_WRITE_DB}
- DB_POOL_MIN_SIZE=${DB_POOL_MIN_SIZE}
- DB_POOL_MAX_SIZE=${DB_POOL_MAX_SIZE}
- REDIS_SCHEME=${REDIS_SCHEME}
- REDIS_USER=${REDIS_USER}
- REDIS_PASS=${REDIS_PASS}
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- REDIS_DB=${REDIS_DB}
- OSU_API_V2_CLIENT_ID=${OSU_API_V2_CLIENT_ID}
- OSU_API_V2_CLIENT_SECRET=${OSU_API_V2_CLIENT_SECRET}
- S3_ACCESS_KEY_ID=${S3_ACCESS_KEY_ID}
- S3_SECRET_ACCESS_KEY=${S3_SECRET_ACCESS_KEY}
- S3_BUCKET_REGION=${S3_BUCKET_REGION}
- S3_BUCKET_NAME=${S3_BUCKET_NAME}
- S3_ENDPOINT_URL=${S3_ENDPOINT_URL}
- RECAPTCHA_SECRET_KEY=${RECAPTCHA_SECRET_KEY}
volumes:
- .:/srv/root
- ./scripts:/scripts
depends_on:
- postgres
- redis