This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
docker-compose.yml
74 lines (73 loc) · 1.66 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
63
64
65
66
67
68
69
70
71
72
73
74
version: "3.7"
services:
radicle-node:
image: gcr.io/radicle-services/radicle-node:${RADICLE_IMAGE_TAG:-latest}
command: ${RADICLE_NODE_OPTIONS}
build:
dockerfile: ./radicle-node/Dockerfile
context: .
environment:
RUST_LOG: debug
RAD_PASSPHRASE: seed
RUST_BACKTRACE: 1
USER: ${USER}
volumes:
- /mnt/radicle/heartwood:/root/
init: true
container_name: radicle-node
restart: unless-stopped
networks:
- radicle-services
deploy:
resources:
limits:
memory: 6gb
ports:
- 8776:8776
radicle-httpd:
image: gcr.io/radicle-services/radicle-httpd:${RADICLE_IMAGE_TAG:-latest}
build:
dockerfile: ./radicle-httpd/Dockerfile
context: .
environment:
RUST_LOG: debug
RUST_BACKTRACE: 1
USER: ${USER}
volumes:
- /mnt/radicle/heartwood:/root/
init: true
container_name: radicle-httpd
restart: unless-stopped
networks:
- radicle-services
deploy:
resources:
limits:
memory: 6gb
caddy:
image: caddy:2.4.5
entrypoint:
- sh
- -euc
- |
cat <<EOF >/etc/caddy/Caddyfile
$RADICLE_DOMAIN {
reverse_proxy radicle-httpd:8080
}
EOF
caddy run --config /etc/caddy/Caddyfile --adapter caddyfile
ports:
- 80:80
- 443:443
environment:
RADICLE_DOMAIN: $RADICLE_DOMAIN
container_name: caddy
restart: unless-stopped
networks:
- radicle-services
volumes:
- $PWD/caddy_data:/data/caddy
- $PWD/caddy_config:/config/caddy
networks:
radicle-services:
name: radicle-services