-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose-dev.yml
57 lines (53 loc) · 1.3 KB
/
compose-dev.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
services:
api:
build:
context: .
dockerfile: ./apps/api/Dockerfile
secrets:
- db-password
environment:
- LOG_LEVEL=debug
- DB_HOST=db
- DB_PASSWORD_FILE=/run/secrets/db-password
ports:
- 1993:1993
depends_on:
- db
db:
image: postgres:17-alpine
ports:
- 5432:5432
secrets:
- db-password
environment:
- POSTGRES_PASSWORD_FILE=/run/secrets/db-password
- POSTGRES_USER=postgres
- POSTGRES_DB=karr
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
caddy:
build:
context: ./apps/server
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "8080:8080"
#- "443:443"
#- "443:443/udp"
environment:
- TZ=Europe/Paris
- HOST=localhost:8080
- API_PORT=1993
- CADDY_DISABLE_TLS=1
volumes:
- caddy_data:/data
- caddy_config:/config
volumes:
caddy_data:
caddy_config:
secrets:
db-password:
file: ./pass.txt