+1
conf/postgres.conf
+1
conf/postgres.conf
···
1
+
listen_addresses = '127.0.0.1'
+13
-11
docker-compose.yml
+13
-11
docker-compose.yml
···
1
1
services:
2
2
relay:
3
3
env_file: .env
4
-
ports:
5
-
- 2470:2470
4
+
network_mode: "host"
5
+
logging:
6
+
driver: "local"
7
+
options:
8
+
max-size: "100m"
9
+
max-file: "3"
6
10
build:
7
11
context: ./indigo
8
12
dockerfile: cmd/relay/Dockerfile
···
13
17
restart: true
14
18
volumes:
15
19
- ${HOME}/data/relay/persist:/data/relay/persist
16
-
networks:
17
-
- web
18
20
caddy:
19
-
image: caddy:2.10
21
+
image: caddy:2.10-alpine
20
22
restart: unless-stopped
23
+
network_mode: host
21
24
ports:
22
25
- "80:80"
23
26
- "443:443"
24
27
volumes:
25
28
- $PWD/conf:/etc/caddy
26
29
- caddy_data:/data
27
-
networks:
28
-
- web
29
30
db:
30
31
env_file: .env
31
-
image: postgres:16
32
+
image: postgres:17-alpine
32
33
healthcheck:
33
34
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
34
35
interval: 10s
···
39
40
volumes:
40
41
- ${HOME}/postgres-data:/var/lib/postgresql/data
41
42
- ./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"]
42
45
ports:
43
46
- "5432:5432"
44
47
networks:
45
-
- web
48
+
- backend
46
49
47
50
volumes:
48
51
caddy_data:
49
52
caddy_config:
50
53
51
54
networks:
52
-
web:
53
-
external: false
55
+
backend: