-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
40 lines (37 loc) · 900 Bytes
/
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
services:
db:
image: postgres:15.6
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: pass123
POSTGRES_DB: dfunkt
volumes:
- ./database/:/docker-entrypoint-initdb.d/
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 3s
timeout: 3s
retries: 5
node:
tty: true
build: .
environment:
SESSION_SECRET: "asdf"
DATABASE_URL: postgresql://postgres:pass123@db:5432/dfunkt
LOGIN_API_URL: "http://login:7002"
LOGIN_FRONTEND_URL: http://localhost:7002
LOGIN_KEY: 1234567890abcdef
PLS_URL: http://login:7001
env_file: .env
volumes:
- ./:/app
ports:
- "5000:5000"
depends_on:
db:
condition: service_healthy
login:
image: ghcr.io/datasektionen/nyckeln-under-dorrmattan
ports:
- 7002:7002
- 7001:7001