tangled
alpha
login
or
join now
besaid.zone
/
relay-docker
7
fork
atom
dockerized atproto relay
7
fork
atom
overview
issues
pulls
pipelines
docker compose updates
besaid.zone
6 months ago
aa7b9da2
1eaecbf0
verified
This commit was signed with the committer's
known signature
.
besaid.zone
SSH Key Fingerprint:
SHA256:Q4dc5PTI8DNTxJbH2bWsDeY6BXzfq0ce1XSA4H5Y3iI=
+14
-11
2 changed files
expand all
collapse all
unified
split
conf
postgres.conf
docker-compose.yml
+1
conf/postgres.conf
···
1
1
+
listen_addresses = '127.0.0.1'
+13
-11
docker-compose.yml
···
1
1
services:
2
2
relay:
3
3
env_file: .env
4
4
-
ports:
5
5
-
- 2470:2470
4
4
+
network_mode: "host"
5
5
+
logging:
6
6
+
driver: "local"
7
7
+
options:
8
8
+
max-size: "100m"
9
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
16
-
networks:
17
17
-
- web
18
20
caddy:
19
19
-
image: caddy:2.10
21
21
+
image: caddy:2.10-alpine
20
22
restart: unless-stopped
23
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
27
-
networks:
28
28
-
- web
29
30
db:
30
31
env_file: .env
31
31
-
image: postgres:16
32
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
43
+
- ./conf/postgres.conf:/etc/postgresql/postgresql.conf
44
44
+
command: ["postgres", "-c", "config_file=/etc/postgresql/postgresql.conf"]
42
45
ports:
43
46
- "5432:5432"
44
47
networks:
45
45
-
- web
48
48
+
- backend
46
49
47
50
volumes:
48
51
caddy_data:
49
52
caddy_config:
50
53
51
54
networks:
52
52
-
web:
53
53
-
external: false
55
55
+
backend: