blob: d600756a8eac1c59dddb45a059954a2dcaddfbab [file] [log] [blame]
Nico Huber8cd50ee2023-06-24 15:35:16 +00001version: "3"
2services:
3 nginx:
Nico Huber38c14da2023-06-24 16:59:28 +00004 build:
5 context: .
6 dockerfile: nginx/Dockerfile
Nico Huberaa15aee2023-07-01 22:35:45 +00007 args:
8 - SELFSIGNED_REQ_HOST=${SA_PUBLIC_DOMAIN_NAME}
9 - SELFSIGNED_REQ_ALT_NAMES=DNS:${SA_PUBLIC_DOMAIN_NAME},
10 DNS:id.${SA_PUBLIC_DOMAIN_NAME}, DNS:mail.${SA_PUBLIC_DOMAIN_NAME},
11 DNS:review.${SA_PUBLIC_DOMAIN_NAME}
Nico Huberd6528722023-07-01 14:38:39 +000012 env_file: environment
Nico Huber8cd50ee2023-06-24 15:35:16 +000013 ports:
14 - "80:80"
Nico Huber38c14da2023-06-24 16:59:28 +000015 - "443:443"
Nico Huber8cd50ee2023-06-24 15:35:16 +000016 networks:
17 - simpleidnet
Nico Hubera1a296f2023-06-25 10:07:07 +000018 - gerritnet
Nico Huber8cd50ee2023-06-24 15:35:16 +000019 volumes:
Nico Huber15edd772023-07-01 18:16:50 +000020 - ./certbot/www/:/var/www/certbot/:ro
Nico Huberd6528722023-07-01 14:38:39 +000021 - ./simpleid/identities/:/var/db/simpleid-templates/:ro
22 - ./simpleid/www/:/var/www/simpleid/:ro
Nico Huber15edd772023-07-01 18:16:50 +000023 - ./certs/:/etc/nginx/certs/:rw
Nico Huberd6528722023-07-01 14:38:39 +000024 - ./nginx/sa.conf:/etc/nginx/conf.d/sa.conf.template:ro
Nico Huber8cd50ee2023-06-24 15:35:16 +000025 - ./nginx/empty.conf:/etc/nginx/conf.d/default.conf:ro
26 - ./logs/nginx:/var/log/nginx/:rw
27 simpleid:
28 build:
29 context: .
30 dockerfile: simpleid/Dockerfile
Nico Huberd6528722023-07-01 14:38:39 +000031 env_file: environment
Nico Huber8cd50ee2023-06-24 15:35:16 +000032 networks:
33 - simpleidnet
34 volumes:
35 - ./simpleid/cache/:/var/cache/simpleid/:rw
Nico Huberd6528722023-07-01 14:38:39 +000036 - ./simpleid/identities/:/var/db/simpleid-templates/:ro
Nico Huber8cd50ee2023-06-24 15:35:16 +000037 - ./simpleid/store/:/var/lib/simpleid/:rw
Nico Huberd6528722023-07-01 14:38:39 +000038 - ./simpleid/www/:/var/www/simpleid/:ro
Nico Huber8cd50ee2023-06-24 15:35:16 +000039 - ./logs/simpleid/:/var/log/:rw
Nico Hubera1a296f2023-06-25 10:07:07 +000040 gerrit:
41 build:
42 context: .
43 dockerfile: gerrit/Dockerfile
Nico Huberb650ed42023-07-20 17:08:54 +000044 hostname: review.${SA_PUBLIC_DOMAIN_NAME}
45 env_file:
46 - gerrit/environment
47 - environment
Nico Hubera1a296f2023-06-25 10:07:07 +000048 environment:
Nico Huberb650ed42023-07-20 17:08:54 +000049 - GERRIT_USER_EMAIL=gerrit@${SA_PUBLIC_DOMAIN_NAME}
Nico Hubera1a296f2023-06-25 10:07:07 +000050 - HTTPD_LISTEN_URL=proxy-https://*:8080/
Nico Huber3c7f1c02023-07-20 17:18:51 +000051 ports:
52 - "29418:29418"
Nico Hubera1a296f2023-06-25 10:07:07 +000053 networks:
54 - gerritnet
55 volumes:
56 - ./logs/gerrit/:/var/gerrit/logs/:rw
Nico Huberb650ed42023-07-20 17:08:54 +000057 - ./mail/passwd/gerrit/:/var/gerrit/passwd/:rw
Nico Hubera1a296f2023-06-25 10:07:07 +000058 - ./gerrit/etc/:/var/gerrit/etc/:rw
59 - ./gerrit/db/:/var/gerrit/db/:rw
60 - ./gerrit/git/:/var/gerrit/git/:rw
61 - ./gerrit/index/:/var/gerrit/index/:rw
62 - ./gerrit/cache/:/var/gerrit/cache/:rw
Nico Huber54073102023-06-25 11:36:59 +000063 - ./gerrit/gerrit-oauth-provider.jar:/var/gerrit/plugins/gerrit-oauth-provider.jar:ro
Nico Huber804b41b2023-07-02 15:53:42 +000064 mailserver:
65 image: ghcr.io/docker-mailserver/docker-mailserver:12
66 #container_name: mailserver
67 # Provide the FQDN of your mail server here (Your DNS MX record should point to this value)
68 hostname: mail.${SA_PUBLIC_DOMAIN_NAME}
69 env_file: mail/mailserver.env
70 # More information about the mail-server ports:
71 # https://docker-mailserver.github.io/docker-mailserver/latest/config/security/understanding-the-ports/
72 # To avoid conflicts with yaml base-60 float, DO NOT remove the quotation marks.
73 ports:
74 - "25:25" # SMTP (explicit TLS => STARTTLS)
75 - "143:143" # IMAP4 (explicit TLS => STARTTLS)
76 - "465:465" # ESMTP (implicit TLS)
77 - "587:587" # ESMTP (explicit TLS => STARTTLS)
78 - "993:993" # IMAP4 (implicit TLS)
Nico Huberb650ed42023-07-20 17:08:54 +000079 networks:
80 - gerritnet
Nico Huber804b41b2023-07-02 15:53:42 +000081 volumes:
82 - ./logs/mail-supervisor/:/var/log/supervisor/:rw
83 - ./logs/mail/:/var/log/mail/:rw
Nico Huber49781a72023-07-02 16:29:22 +000084 - ./certs/:/etc/letsencrypt/:ro
Nico Huberb650ed42023-07-20 17:08:54 +000085 - ./mail/passwd/:/tmp/passwd/:ro
Nico Huber804b41b2023-07-02 15:53:42 +000086 - ./mail/data/:/var/mail/:rw
87 - ./mail/state/:/var/mail-state/:rw
88 - ./mail/config/:/tmp/docker-mailserver/:rw
Nico Huber22aecea2023-07-19 01:39:58 +000089 - ./mail/rspamd-override.d/:/etc/rspamd/override.d/:rw
Nico Huber804b41b2023-07-02 15:53:42 +000090 - /etc/localtime:/etc/localtime:ro
91 restart: always
92 stop_grace_period: 1m
93 # Uncomment if using `ENABLE_FAIL2BAN=1`:
94 # cap_add:
95 # - NET_ADMIN
96 healthcheck:
97 test: "ss --listening --tcp | grep -P 'LISTEN.+:smtp' || exit 1"
98 timeout: 3s
99 retries: 0
Nico Huber8cd50ee2023-06-24 15:35:16 +0000100networks:
101 simpleidnet:
102 driver: bridge
Nico Huber4bc2bdd2023-07-01 22:33:36 +0000103 ipam:
104 config:
105 - subnet: 10.12.14.16/29
Nico Hubera1a296f2023-06-25 10:07:07 +0000106 gerritnet:
107 driver: bridge
Nico Huber4bc2bdd2023-07-01 22:33:36 +0000108 ipam:
109 config:
110 - subnet: 10.12.14.24/29