static-publishing-platform/docker-compose.yml

110 lines
2.8 KiB
YAML
Raw Permalink Normal View History

2023-02-09 14:22:31 +00:00
services:
2023-02-21 14:49:04 +00:00
reverse:
image: nginx:1.23.3
container_name: reverse
restart: always
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- "80:80"
2023-02-21 20:25:42 +00:00
networks:
localnet:
ipv6_address: fd00::2
2023-02-21 17:35:34 +00:00
links:
- "gitea:gitea"
- "teabag:teabag"
- "garage:garage"
- "drone:drone"
2023-02-21 14:49:04 +00:00
gitea:
2023-02-09 14:22:31 +00:00
# Patched image required for Gitea version < 1.19
image: superboum/gitea:1.17.4-cors
container_name: gitea
2023-02-21 20:25:42 +00:00
networks:
localnet:
ipv6_address: fd00::3
2023-02-09 14:22:31 +00:00
environment:
- USER_UID=1000
- USER_GID=1000
2023-02-21 14:49:04 +00:00
- GITEA__cors__ENABLED=true
- GITEA__cors__ALLOW_DOMAIN=*
- GITEA__cors__ALLOW_CREDENTIALS=true
- GITEA__cors__SCHEME=*
- GITEA__cors__METHODS=GET,HEAD,POST,PUT,PATCH,DELETE,OPTIONS
2023-02-09 14:22:31 +00:00
# Ignored in Gitea version < 1.19, see image comment above
2023-02-21 14:49:04 +00:00
- GITEA__cors__HEADERS=Content-Type,User-Agent,Authorization
2023-02-09 16:12:26 +00:00
# HTTP hooks
- GITEA__webhook__ALLOWED_HOST_LIST=*
2023-02-09 14:22:31 +00:00
restart: always
volumes:
- ./gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "2222:22"
2023-02-21 20:25:42 +00:00
2023-02-09 14:22:31 +00:00
teabag:
image: ghcr.io/denyskon/teabag:latest
container_name: teabag
2023-02-21 20:25:42 +00:00
networks:
localnet:
ipv6_address: fd00::4
2023-02-09 14:22:31 +00:00
restart: always
volumes:
- ./teabag.env:/etc/teabag/teabag.env
2023-02-09 16:12:26 +00:00
drone:
image: drone/drone:2
container_name: drone
restart: always
2023-02-21 20:25:42 +00:00
networks:
localnet:
ipv6_address: fd00::5
2023-02-09 16:12:26 +00:00
environment:
2023-02-21 17:35:34 +00:00
- DRONE_GITEA_CLIENT_ID=c0f72ac9-defc-4c0e-a118-9ac36f1f336a
- DRONE_GITEA_CLIENT_SECRET=gto_fillslosv252xrb7mpkgo5k6boktyw4vtympxlwyzsydeuwuqaia
2023-02-21 14:49:04 +00:00
- DRONE_GITEA_SERVER=http://git.vimaire.machine.dufour.io
2023-02-09 16:12:26 +00:00
- DRONE_RPC_SECRET=EJPRnOcjAoKxAShyBTdeDX4GSHRUX4FzuIJKohTEw10=
2023-02-21 14:49:04 +00:00
- DRONE_SERVER_HOST=drone.vimaire.machine.dufour.io
2023-02-09 16:12:26 +00:00
- DRONE_SERVER_PROTO=http
- DRONE_SERVER_PORT=:3002
2023-02-21 20:25:42 +00:00
volumes:
- ./drone:/data
2023-02-09 16:12:26 +00:00
runner:
image: drone/drone-runner-docker:1
container_name: runner
restart: always
2023-02-21 20:25:42 +00:00
networks:
localnet:
ipv6_address: fd00::6
2023-02-09 16:12:26 +00:00
environment:
- DRONE_RPC_PROTO=http
2023-02-21 14:49:04 +00:00
- DRONE_RPC_HOST=drone.vimaire.machine.dufour.io
2023-02-09 16:12:26 +00:00
- DRONE_RPC_SECRET=EJPRnOcjAoKxAShyBTdeDX4GSHRUX4FzuIJKohTEw10=
- DRONE_RUNNER_CAPACITY=1
- DRONE_RUNNER_NAME=dummy
- DRONE_HTTP_BIND=3003
2023-02-21 20:25:42 +00:00
- DRONE_RUNNER_NETWORKS=static-publishing-platform_localnet
2023-02-09 16:12:26 +00:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock
2023-02-09 20:53:00 +00:00
garage:
image: dxflrs/garage:v0.8.1
container_name: garage
restart: always
2023-02-21 20:25:42 +00:00
networks:
localnet:
ipv6_address: fd00::7
2023-02-09 20:53:00 +00:00
volumes:
- ./garage.toml:/etc/garage.toml
2023-02-21 17:35:34 +00:00
- ./garage:/var/lib/garage/
2023-02-09 20:53:00 +00:00
2023-02-21 20:25:42 +00:00
networks:
localnet:
enable_ipv6: true
ipam:
driver: default
config:
- subnet: "fd00::/64"