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