Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
Remove outdated docker-compose files
Merged yorgos-laptop opened 1 year ago
2 files changed +0 -98 61733ebb 34d213ad
deleted docker-compose.yml
@@ -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
deleted scripts/deploy-seed
@@ -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