services:
  ringspace:
    image: ringspace:latest
    container_name: ringspace
    env_file:
      - .env
    build:
      dockerfile: ./Containerfile
      context: ./
    volumes:
      - ringspace_data:/data
  caddy:
    image: caddy:latest
    env_file:
      - .env
    ports:
      - "${RINGSPACE_LISTEN_ADDRESS:-0.0.0.0}:${RINGSPACE_HTTP_PORT:-8080}:80"
      - "${RINGSPACE_LISTEN_ADDRESS:0.0.0.0}:${RINGSPACE_HTTPS_PORT:-8443}:443"
    volumes:
      - ./Caddyfile:/etc/caddy/Caddyfile


volumes:
  ringspace_data:
