docker: Remove outdated docker-compose files

After the Dockerfiles for radicle-node and radicle-httpd have been
removed, these files can also be removed.

Signed-off-by: Yorgos Saslis <yorgos.work@proton.me>
This commit is contained in:
Yorgos Saslis 2024-05-22 18:33:22 +03:00 committed by cloudhead
parent 61733ebb95
commit 34d213ad23
No known key found for this signature in database
2 changed files with 0 additions and 98 deletions

View File

@ -1,74 +0,0 @@
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

View File

@ -1,24 +0,0 @@
#!/bin/sh
set -e
HOST=seed.radicle.xyz
BRANCH="$(git rev-parse --abbrev-ref HEAD)"
HEAD="$(git rev-parse HEAD)"
if [ "$BRANCH" != "master" ]; then
echo "You must be on the master branch to run this script."
exit 1
fi
echo "Using commit $HEAD"
echo "Copying files.."
scp .env.seed seed@"$HOST":.env
scp docker-compose.yml seed@"$HOST":docker-compose.yml
echo "Deploying.."
ssh seed@"$HOST" << EOF
docker system prune --all --force
RADICLE_IMAGE_TAG=$HEAD docker-compose --file docker-compose.yml pull
RADICLE_IMAGE_TAG=$HEAD docker-compose --file docker-compose.yml down
RADICLE_IMAGE_TAG=$HEAD docker-compose --file docker-compose.yml up --detach
EOF