-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
99 lines (90 loc) · 2 KB
/
docker-compose.yml
File metadata and controls
99 lines (90 loc) · 2 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
services:
postgres:
image: postgres:18-alpine
networks:
- hkr_internal
ports:
- 5432:5432
env_file: .env
volumes:
- ./scripts/init-n8n.sh:/docker-entrypoint-initdb.d/init-n8n.sh
- ./scripts/init-hkr.sh:/docker-entrypoint-initdb.d/init-hkr.sh
- postgres_data:/var/lib/postgresql
healthcheck:
test:
[
'CMD-SHELL',
'pg_isready -h localhost -U ${POSTGRES_USER} -d ${POSTGRES_DB}',
]
interval: 5s
timeout: 5s
retries: 10
n8n:
image: docker.n8n.io/n8nio/n8n
restart: always
environment:
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_DATABASE=${DB_N8N_DATABASE}
- DB_POSTGRESDB_USER=${DB_N8N_USER}
- DB_POSTGRESDB_PASSWORD=${DB_N8N_PASSWORD}
networks:
- hkr_internal
ports:
- 5678:5678
links:
- postgres
volumes:
- n8n_data:/home/node/.n8n
depends_on:
postgres:
condition: service_healthy
hkr:
image: ghcr.io/munuchapterhkn/hkrecruitment:latest
build: .
restart: always
env_file: .env
networks:
- hkr_internal
ports:
- 8080:3000
depends_on:
postgres:
condition: service_healthy
backup:
build:
context: ./scripts/backup
restart: unless-stopped
env_file: .env
networks:
- hkr_internal
volumes:
- backup_data:/backups
- ./scripts/backup/backup.d:/etc/backup.d:ro
- ./scripts/backup/rclone.conf:/config/rclone/rclone.conf:ro
depends_on:
postgres:
condition: service_healthy
caddy:
image: caddy:2-alpine
restart: always
ports:
- 80:80
- 443:443
networks:
- hkr_internal
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_config:/config
- caddy_data:/data
depends_on:
- hkr
networks:
hkr_internal:
volumes:
postgres_data:
n8n_data:
caddy_data:
caddy_config:
backup_data: