-
Notifications
You must be signed in to change notification settings - Fork 48
/
docker-compose.yml
61 lines (58 loc) · 1.43 KB
/
docker-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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: '3.7'
services:
db:
hostname: db.${APP_HOST}
environment:
- POSTGRES_PASSWORD
networks:
- internal
image: postgres:17-alpine
restart: always
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 30s
timeout: 30s
retries: 3
app:
hostname: app.${APP_HOST}
image: ghcr.io/ledermann/pingcrm:latest
volumes:
- ${APP_VOLUME_PATH}:/app/storage
environment:
- APP_HOST
- DB_HOST=db
- DB_PASSWORD=${POSTGRES_PASSWORD}
- DB_USER=postgres
- SECRET_KEY_BASE
- TZ
- PLAUSIBLE_URL
deploy:
update_config:
order: start-first
replicas: 1
labels:
- traefik.enable=true
- traefik.port=3000
- traefik.docker.network=traefik_traefik-net
- traefik.frontend.rule=Host:${APP_HOST}
- traefik.frontend.redirect.entryPoint=https
- traefik.frontend.redirect.permanent=true
- traefik.frontend.headers.STSSeconds=31536000
- traefik.frontend.headers.STSIncludeSubdomains=true
- traefik.frontend.headers.STSPreload=true
networks:
- traefik_traefik-net
- internal
links:
- db
restart: always
healthcheck:
test: ['CMD-SHELL', 'nc -z 127.0.0.1 3000 || exit 1']
interval: 1m
start_period: 1m
networks:
internal:
driver_opts:
encrypted: ''
traefik_traefik-net:
external: true