+5
-1
conf/Caddyfile
+5
-1
conf/Caddyfile
-1
conf/postgres.conf
-1
conf/postgres.conf
···
1
-
listen_addresses = '127.0.0.1'
+2
-6
docker-compose.yml
+2
-6
docker-compose.yml
···
29
29
- caddy_data:/data
30
30
db:
31
31
env_file: .env
32
-
image: postgres:17-alpine
32
+
image: postgres:16-alpine
33
33
healthcheck:
34
-
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
35
-
interval: 10s
34
+
test: ["CMD-SHELL", "pg_isready -U relay"]
36
35
retries: 5
37
36
start_period: 30s
38
37
timeout: 10s
···
40
39
volumes:
41
40
- ${HOME}/postgres-data:/var/lib/postgresql/data
42
41
- ./init.sql:/docker-entrypoint-initdb.d/init.sql:ro
43
-
- ./conf/postgres.conf:/etc/postgresql/postgresql.conf
44
-
command: ["postgres", "-c", "config_file=/etc/postgresql/postgresql.conf"]
45
42
ports:
46
43
- "5432:5432"
47
44
networks:
48
45
- backend
49
-
50
46
volumes:
51
47
caddy_data:
52
48
caddy_config: