2024-08-27 09:42:18 +02:00
|
|
|
services:
|
|
|
|
forgejo:
|
2024-12-06 21:52:11 +01:00
|
|
|
image: codeberg.org/forgejo/forgejo:9-rootless
|
2024-08-27 09:42:18 +02:00
|
|
|
container_name: forgejo
|
2024-12-06 21:52:11 +01:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:3000"]
|
|
|
|
environment:
|
|
|
|
ROOT_PASSWORD_FILE: /run/secrets/forgejo_root_password
|
2024-08-27 09:42:18 +02:00
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
forgejo:
|
2024-12-06 21:52:11 +01:00
|
|
|
ipv4_address: 172.20.0.5
|
2024-08-27 09:42:18 +02:00
|
|
|
volumes:
|
|
|
|
- ./data/forgejo:/var/lib/gitea:Z
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
2024-12-06 21:52:11 +01:00
|
|
|
reverse_proxy:
|
2024-08-27 09:42:18 +02:00
|
|
|
image: ghcr.io/nginxinc/nginx-unprivileged:mainline-alpine-slim
|
|
|
|
container_name: reverse_proxy
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- "443:8443"
|
2024-12-06 21:52:11 +01:00
|
|
|
- "8444:8444"
|
|
|
|
- "80:8080"
|
|
|
|
- "30022:30022"
|
|
|
|
volumes:
|
2024-08-27 09:42:18 +02:00
|
|
|
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
|
|
- ./config/nginx/tls.conf:/etc/nginx/conf.d/tls.conf:ro
|
|
|
|
- ./data/certs:/etc/nginx/ssl:ro
|
2024-12-06 21:52:11 +01:00
|
|
|
- /home/static_site/public:/usr/share/nginx/html:ro
|
2024-08-27 09:42:18 +02:00
|
|
|
networks:
|
|
|
|
- forgejo
|
|
|
|
- frontend
|
2024-12-06 21:52:11 +01:00
|
|
|
depends_on:
|
|
|
|
forgejo:
|
|
|
|
condition: service_healthy
|
|
|
|
restart: true
|
2024-08-27 09:42:18 +02:00
|
|
|
acme.sh:
|
|
|
|
command:
|
|
|
|
- daemon
|
|
|
|
container_name: acme.sh
|
|
|
|
env_file:
|
|
|
|
- ./.secrets/acme.env
|
2024-12-06 21:52:11 +01:00
|
|
|
image: ghcr.io/polarix-containers/acme.sh:latest
|
2024-08-27 09:42:18 +02:00
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ./data/acme.sh:/acme.sh:Z
|
|
|
|
- ./data/certs:/certs:z
|
|
|
|
postgres:
|
|
|
|
container_name: postgres
|
2024-12-06 21:52:11 +01:00
|
|
|
image: ghcr.io/polarix-containers/postgres:16
|
2024-08-27 09:42:18 +02:00
|
|
|
volumes:
|
|
|
|
- ./data/postgres:/var/lib/postgresql/data:Z
|
2024-12-06 21:52:11 +01:00
|
|
|
restart: always
|
2024-08-27 09:42:18 +02:00
|
|
|
env_file:
|
|
|
|
- ./.secrets/acme.env
|
|
|
|
networks:
|
|
|
|
forgejo:
|
2024-12-06 21:52:11 +01:00
|
|
|
ipv4_address: 172.20.0.6
|
2024-08-27 09:42:18 +02:00
|
|
|
networks:
|
|
|
|
forgejo:
|
2024-12-06 21:52:11 +01:00
|
|
|
ipam:
|
|
|
|
config:
|
|
|
|
- subnet: 172.20.0.0/24
|
2024-08-27 09:42:18 +02:00
|
|
|
external: false
|
|
|
|
frontend:
|
|
|
|
driver: bridge
|