-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
62 lines (60 loc) · 1.25 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
62
version: "3"
services:
caddy:
image: caddy:2.8.1-alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- $PWD/Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
networks:
- proxy
web:
build: .
restart: unless-stopped
environment:
- PGHOST=db
- PGPORT=5432
- PGDATABASE=cup2024
- PGUSER=cup2024
- PGPASSWORD=123456
env_file:
- prod.env
networks:
- db
- proxy
db:
image: postgres:16.3
restart: unless-stopped
environment:
- POSTGRES_USER=cup2024
- POSTGRES_DB=cup2024
- POSTGRES_PASSWORD=123456
networks:
- db
volumes:
- postgres_data:/var/lib/postgresql/data
autoupdater:
build: ./autoupdater
restart: unless-stopped
networks:
- proxy
backup-daemon:
build: ./backup-daemon
restart: unless-stopped
networks:
- db
volumes:
- backups:/backups
networks:
proxy:
db:
volumes:
caddy_data:
caddy_config:
postgres_data:
backups: