-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.local.yml
51 lines (50 loc) · 1.55 KB
/
docker-compose.local.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
services:
db:
image: mysql:9
restart: no # in dev, this avoids having to crawl through the restart and makes a crash more obvious ^^
ports:
- "${DB_PORT:-3306}:3306"
environment:
- MYSQL_ROOT_PASSWORD=${DB_USER_PASSWORD}
- MYSQL_DATABASE=${DB_NAME}
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
volumes:
- mysql-data:/var/lib/mysql
healthcheck:
test: /usr/bin/mysql --user=root --password=${DB_USER_PASSWORD} --execute "SHOW DATABASES"
interval: 2s
timeout: 20s
retries: 10
backend:
build:
context: server/
args:
version: dev # compiled with the git sha in prod
restart: no # in dev, this avoids having to crawl through the restart and makes a crash more obvious ^^
ports:
- "50051:50051"
environment:
- ENVIRONMENT=${ENVIRONMENT:-dev}
- DB_DSN=${DB_USER_NAME:-root}:${DB_USER_PASSWORD}@tcp(db:${DB_PORT:-3306})/${DB_NAME}?charset=utf8mb4&parseTime=True&loc=Local
- DB_NAME=${DB_NAME}
- SENTRY_DSN=${SENTRY_DSN}
- OMDB_API_KEY=${OMDB_API_KEY}
- SMTP_PASSWORD=${SMTP_PASSWORD}
- SMTP_URL=${SMTP_URL:-postout.lrz.de}
- SMTP_USERNAME=${SMTP_USERNAME:[email protected]}
- SMTP_FROM=${SMTP_FROM:[email protected]}
- SMTP_PORT=${SMTP_PORT:-587}
user: 1000:3000
read_only: true
volumes:
- backend-storage:/Storage
depends_on:
db:
condition: service_healthy
volumes:
mysql-data:
driver: local
backend-storage:
driver: local