-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (64 loc) · 1.69 KB
/
docker-compose.yml
File metadata and controls
67 lines (64 loc) · 1.69 KB
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
secrets:
sentry_dsn:
file: "./.secrets/sentry_dsn"
database_username:
file: "./.secrets/database_username"
database_password:
file: "./.secrets/database_password"
jwt_public_key:
file: "./.secrets/jwt_public_key.pem"
jwt_private_key:
file: "./.secrets/jwt_private_key.pem"
image_api_key:
file: "./.secrets/image_api_key"
services:
mensatt:
build:
target: dev
volumes:
- .:/opt/mensatt
secrets:
- "sentry_dsn"
- "database_username"
- "database_password"
- "jwt_public_key"
- "jwt_private_key"
- "image_api_key"
environment:
ENVIRONMENT: local
HOST: 0.0.0.0
PORT: 4000
MAX_CONNECTIONS: 90
DEBUG_ENABLED: true
DATABASE_HOST: postgres
DATABASE_NAME: mensatt
DATABASE_USERNAME_FILE: /run/secrets/database_username
DATABASE_PASSWORD_FILE: /run/secrets/database_password
SENTRY_DSN_FILE: /run/secrets/sentry_dsn
JWT_PUBLIC_KEY_PATH: /run/secrets/jwt_public_key
JWT_PRIVATE_KEY_PATH: /run/secrets/jwt_private_key
JWT_ALGORITHM: RS256
JWT_TIMEOUT_SEC: 525600
IMAGE_API_URL: https://dev-api.mensatt.de/content/
IMAGE_API_KEY_FILE: /run/secrets/image_api_key
ports:
- "4000:4000"
links:
- postgres
postgres:
image: postgres:14.2-alpine
volumes:
- postgres-data:/var/lib/postgresql/data/
secrets:
- "database_username"
- "database_password"
environment:
POSTGRES_DB: mensatt
POSTGRES_USER_FILE: /run/secrets/database_username
POSTGRES_PASSWORD_FILE: /run/secrets/database_password
ports:
- "5432:5432"
restart: always
volumes:
postgres-data:
asset-data: