version: "3.4" services: server: # Patched image required for Gitea version < 1.19 image: superboum/gitea:1.17.4-cors container_name: gitea network_mode: host environment: - USER_UID=1000 - USER_GID=1000 - GITEA__cors__ENABLED =true - GITEA__cors__ALLOW_DOMAIN =* - GITEA__cors__ALLOW_CREDENTIALS =true - GITEA__cors__SCHEME =* # Ignored in Gitea version < 1.19, see image comment above - GITEA__cors__HEADERS =Content-Type,User-Agent,Authorization # HTTP hooks - GITEA__webhook__ALLOWED_HOST_LIST=* restart: always volumes: - ./gitea:/data - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro ports: - "3000:3000" - "2222:22" teabag: image: ghcr.io/denyskon/teabag:latest container_name: teabag restart: always network_mode: host volumes: - ./teabag.env:/etc/teabag/teabag.env ports: - "3001:3001" drone: image: drone/drone:2 container_name: drone network_mode: host restart: always environment: - DRONE_GITEA_CLIENT_ID=2ede47ba-c943-48ad-8f7b-987df45983ee - DRONE_GITEA_CLIENT_SECRET=gto_vvj5e4fjvg6s3zeu4plgolvx2erowjvcp5bzhfo4c76v7bn466pa - DRONE_GITEA_SERVER=http://localhost:3000 - DRONE_RPC_SECRET=EJPRnOcjAoKxAShyBTdeDX4GSHRUX4FzuIJKohTEw10= - DRONE_SERVER_HOST=localhost:3002 - DRONE_SERVER_PROTO=http - DRONE_SERVER_PORT=:3002 ports: - "3002:3002" runner: image: drone/drone-runner-docker:1 container_name: runner network_mode: host restart: always environment: - DRONE_RPC_PROTO=http - DRONE_RPC_HOST=localhost:3002 - DRONE_RPC_SECRET=EJPRnOcjAoKxAShyBTdeDX4GSHRUX4FzuIJKohTEw10= - DRONE_RUNNER_CAPACITY=1 - DRONE_RUNNER_NAME=dummy - DRONE_HTTP_BIND=3003 volumes: - /var/run/docker.sock:/var/run/docker.sock