-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose-dev.yml
78 lines (73 loc) · 1.81 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
services:
web:
build:
context: .
dockerfile: ./apps/web/Dockerfile
environment:
- LOG_LEVEL=debug
- CONFIG_DIR=/app/config
- API=http://api:1993
- PORT=3000
ports:
- 3000:3000
volumes:
- ./config:/app/config
depends_on:
- api
api:
build:
context: .
dockerfile: ./apps/api/Dockerfile
secrets:
- db-password
environment:
- LOG_LEVEL=debug
- CONFIG_DIR=/app/config
- DB_HOST=db
- DB_USER=postgres
- DB_PASSWORD_FILE=/run/secrets/db-password
ports:
- 1993:1993
volumes:
- ./config:/app/config
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/caddy
dockerfile: Dockerfile
restart: unless-stopped
ports:
- 8080:8080
#- "443:443"
#- "443:443/udp"
environment:
- TZ=Europe/Paris
- SITE_ADDRESS=:8080
- API_PORT=1993
- WEB_PORT=3000
- CADDY_DISABLE_TLS=1
volumes:
- ./apps/caddy/data:/data
- ./apps/caddy/config:/config
volumes:
caddy_data:
caddy_config:
secrets:
db-password:
file: ./pass.txt