2024-07-04 06:40:30 +00:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
watchtower:
|
|
|
|
image: containrrr/watchtower
|
|
|
|
restart: always
|
|
|
|
command: --label-enable
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
nginx:
|
|
|
|
image: nginx:bookworm
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ./nginx_templates:/etc/nginx/templates:ro
|
|
|
|
- /etc/letsencrypt:/etc/letsencrypt:ro
|
|
|
|
- /var/www/.well-known/acme-challenge:/var/www/.well-known/acme-challenge:ro
|
|
|
|
- /var/www/html:/var/www/html:ro
|
|
|
|
- /etc/ssl/certs:/etc/ssl/certs:ro
|
|
|
|
- /usr/local/share/ca-certificates:/usr/local/share/ca-certificates:ro
|
|
|
|
- /var/discourse/shared/standalone/:/forum
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
|
|
|
environment:
|
|
|
|
- BASE_DOMAIN_NAME=${BASE_DOMAIN_NAME}
|
|
|
|
- ALT_BASE_DOMAIN_NAME=${ALT_BASE_DOMAIN_NAME}
|
|
|
|
- NGINX_ENVSUBST_OUTPUT_DIR=/etc/nginx
|
2024-07-05 02:15:01 +00:00
|
|
|
- NGINX_ENVSUBST_FILTER=^(BASE_DOMAIN_NAME|ALT_BASE_DOMAIN_NAME)$$
|
2024-07-04 06:40:30 +00:00
|
|
|
links:
|
|
|
|
- forgejo
|
|
|
|
- mail
|
2024-07-14 10:27:19 +00:00
|
|
|
networks:
|
|
|
|
- net_with_ipv6
|
2024-07-04 06:40:30 +00:00
|
|
|
labels:
|
|
|
|
- "com.centurylinklabs.watchtower.enable=true"
|
|
|
|
forgejo:
|
|
|
|
image: codeberg.org/forgejo/forgejo:7
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
- USER_UID=1000
|
|
|
|
- USER_GID=1000
|
|
|
|
volumes:
|
|
|
|
- /var/lib/forgejo/:/data/git
|
2024-07-15 03:54:06 +00:00
|
|
|
- /var/lib/forgejo-data/:/data/
|
2024-07-04 06:40:30 +00:00
|
|
|
- /etc/forgejo/:/data/gitea/conf
|
|
|
|
- /var/www/html:/var/www/html
|
|
|
|
- /etc/ssl/certs:/etc/ssl/certs:ro
|
|
|
|
- /usr/local/share/ca-certificates:/usr/local/share/ca-certificates:ro
|
|
|
|
expose:
|
|
|
|
- '3000'
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:2222:22"
|
|
|
|
links:
|
|
|
|
- mail:mail.${BASE_DOMAIN_NAME}
|
2024-07-14 10:27:19 +00:00
|
|
|
networks:
|
|
|
|
- net_with_ipv6
|
2024-07-04 06:40:30 +00:00
|
|
|
labels:
|
|
|
|
- "com.centurylinklabs.watchtower.enable=true"
|
|
|
|
mail:
|
2024-12-17 01:02:39 +00:00
|
|
|
image: stalwartlabs/mail-server:v0.10.7
|
2024-07-04 06:40:30 +00:00
|
|
|
restart: always
|
|
|
|
expose:
|
|
|
|
- '80'
|
|
|
|
ports:
|
|
|
|
- '25:25'
|
|
|
|
- '465:465'
|
|
|
|
- '587:587'
|
|
|
|
- '993:993'
|
|
|
|
- '995:995'
|
|
|
|
volumes:
|
|
|
|
- /var/lib/stalwart-mail:/opt/stalwart-mail
|
|
|
|
- /etc/letsencrypt:/etc/letsencrypt:ro
|
|
|
|
- /etc/ssl/certs:/etc/ssl/certs:ro
|
|
|
|
- /usr/local/share/ca-certificates:/usr/local/share/ca-certificates:ro
|
2024-07-14 10:27:19 +00:00
|
|
|
networks:
|
|
|
|
- net_with_ipv6
|
2024-09-11 00:23:41 +00:00
|
|
|
# labels: # enable when mail-server has a stable release channel
|
2024-07-04 06:40:30 +00:00
|
|
|
# - "com.centurylinklabs.watchtower.enable=true"
|
2024-07-14 10:27:19 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
net_with_ipv6:
|
|
|
|
attachable: true
|
2024-07-15 03:54:06 +00:00
|
|
|
enable_ipv6: true
|