This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
71 lines (69 loc) · 1.74 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
version: "3.7"
services:
http-api:
image: gcr.io/radicle-services/http-api:${RADICLE_IMAGE_TAG:-latest}
entrypoint: /usr/local/bin/radicle-http-api --listen 0.0.0.0:8777 --root /app/radicle --passphrase seed
build:
dockerfile: ./http-api/Dockerfile
context: .
volumes:
- /var/opt/radicle:/app/radicle
environment:
RUST_LOG: info
RAD_HOME: /app/radicle
init: true
container_name: http-api
restart: unless-stopped
networks:
- radicle-services
depends_on:
- git-server
git-server:
image: gcr.io/radicle-services/git-server:${RADICLE_IMAGE_TAG:-latest}
entrypoint: /usr/local/bin/radicle-git-server.sh $RADICLE_GIT_SERVER_OPTS --root /app/radicle --passphrase seed
build:
dockerfile: ./git-server/Dockerfile
context: .
volumes:
- /var/opt/radicle:/app/radicle
environment:
RUST_LOG: hyper=warn,debug
RAD_HOME: /app/radicle
init: true
container_name: git-server
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 git-server:8778
}
$RADICLE_DOMAIN:8777 {
reverse_proxy http-api:8777
}
EOF
caddy run --config /etc/caddy/Caddyfile --adapter caddyfile
ports:
- 80:80
- 443:443
- 8777:8777
- 8086:8086
environment:
RADICLE_DOMAIN: $RADICLE_DOMAIN
container_name: caddy
restart: unless-stopped
networks:
- radicle-services
networks:
radicle-services:
name: radicle-services