-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yaml
81 lines (79 loc) · 2.22 KB
/
docker-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
services:
backend:
image: ghcr.io/tum-dev/campus-backend/backend-server:latest
restart: always
build:
context: server/
args:
version: dev # compiled with the git sha in prod
ports:
- 50051:50051
environment:
- DB_DSN=root:${DB_ROOT_PASSWORD}@tcp(db:${DB_PORT:-3306})/${DB_NAME}?charset=utf8mb4&parseTime=True&loc=Local
- ENVIRONMENT=dev
- SENTRY_DSN=${SENTRY_DSN}
- APNS_KEY_ID=${APNS_KEY_ID}
- APNS_TEAM_ID=${APNS_TEAM_ID}
- APNS_P8_FILE_PATH=${APNS_P8_FILE_PATH}
- MensaCronDisabled=true
- OMDB_API_KEY=${OMDB_API_KEY}
- CAMPUS_API_TOKEN=${CAMPUS_API_TOKEN}
- SMTP_PASSWORD=${SMTP_PASSWORD}
- SMTP_URL=${SMTP_URL:-postout.lrz.de}
- SMTP_USERNAME=${SMTP_USERNAME:[email protected]}
- SMTP_PORT=${SMTP_PORT:-587}
volumes:
- backend-storage:/Storage
- ./apns_auth_key.p8:${APNS_P8_FILE_PATH}
user: 1000:3000
depends_on:
db:
condition: service_healthy
db:
image: bitnami/mariadb:latest
ports:
- ${DB_PORT:-3306}:3306
environment:
- MARIADB_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- MARIADB_DATABASE=${DB_NAME}
volumes:
- campus-db-data:/bitnami/mariadb
healthcheck:
test: ['CMD', '/opt/bitnami/scripts/mariadb/healthcheck.sh']
interval: 15s
timeout: 5s
retries: 6
# The following code can be used to test the envoy proxy locally
# The reason why this is commented out is that this working requires the following change:
#
# ./deployment/charts/backend/files/envoy.yaml
# socket_address:
# - address: localhost
# + address: backend
# port_value: 50051
#
#grpc-web:
# image: envoyproxy/envoy:v1.27-latest
# restart: always
# command:
# - /docker-entrypoint.sh
# - --config-path
# - /etc/envoy/envoy.yaml
# - --service-cluster
# - backend-v2
# - --service-node
# - backend-v2
# - --log-level
# - info
# ports:
# - 8081:8081
# - 9901:9901
# volumes:
# - ./deployment/charts/backend/files/envoy.yaml:/etc/envoy/envoy.yaml
# depends_on:
# - backend
volumes:
campus-db-data:
driver: local
backend-storage:
driver: local