Nico Huber | 8cd50ee | 2023-06-24 15:35:16 +0000 | [diff] [blame] | 1 | version: "3" |
| 2 | services: |
| 3 | nginx: |
Nico Huber | 38c14da | 2023-06-24 16:59:28 +0000 | [diff] [blame] | 4 | build: |
| 5 | context: . |
| 6 | dockerfile: nginx/Dockerfile |
Nico Huber | aa15aee | 2023-07-01 22:35:45 +0000 | [diff] [blame] | 7 | 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 Huber | d652872 | 2023-07-01 14:38:39 +0000 | [diff] [blame] | 12 | env_file: environment |
Nico Huber | 8cd50ee | 2023-06-24 15:35:16 +0000 | [diff] [blame] | 13 | ports: |
| 14 | - "80:80" |
Nico Huber | 38c14da | 2023-06-24 16:59:28 +0000 | [diff] [blame] | 15 | - "443:443" |
Nico Huber | 8cd50ee | 2023-06-24 15:35:16 +0000 | [diff] [blame] | 16 | networks: |
| 17 | - simpleidnet |
Nico Huber | a1a296f | 2023-06-25 10:07:07 +0000 | [diff] [blame] | 18 | - gerritnet |
Nico Huber | 8cd50ee | 2023-06-24 15:35:16 +0000 | [diff] [blame] | 19 | volumes: |
Nico Huber | 15edd77 | 2023-07-01 18:16:50 +0000 | [diff] [blame] | 20 | - ./certbot/www/:/var/www/certbot/:ro |
Nico Huber | d652872 | 2023-07-01 14:38:39 +0000 | [diff] [blame] | 21 | - ./simpleid/identities/:/var/db/simpleid-templates/:ro |
| 22 | - ./simpleid/www/:/var/www/simpleid/:ro |
Nico Huber | 15edd77 | 2023-07-01 18:16:50 +0000 | [diff] [blame] | 23 | - ./certs/:/etc/nginx/certs/:rw |
Nico Huber | d652872 | 2023-07-01 14:38:39 +0000 | [diff] [blame] | 24 | - ./nginx/sa.conf:/etc/nginx/conf.d/sa.conf.template:ro |
Nico Huber | 8cd50ee | 2023-06-24 15:35:16 +0000 | [diff] [blame] | 25 | - ./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 Huber | d652872 | 2023-07-01 14:38:39 +0000 | [diff] [blame] | 31 | env_file: environment |
Nico Huber | 8cd50ee | 2023-06-24 15:35:16 +0000 | [diff] [blame] | 32 | networks: |
| 33 | - simpleidnet |
| 34 | volumes: |
| 35 | - ./simpleid/cache/:/var/cache/simpleid/:rw |
Nico Huber | d652872 | 2023-07-01 14:38:39 +0000 | [diff] [blame] | 36 | - ./simpleid/identities/:/var/db/simpleid-templates/:ro |
Nico Huber | 8cd50ee | 2023-06-24 15:35:16 +0000 | [diff] [blame] | 37 | - ./simpleid/store/:/var/lib/simpleid/:rw |
Nico Huber | d652872 | 2023-07-01 14:38:39 +0000 | [diff] [blame] | 38 | - ./simpleid/www/:/var/www/simpleid/:ro |
Nico Huber | 8cd50ee | 2023-06-24 15:35:16 +0000 | [diff] [blame] | 39 | - ./logs/simpleid/:/var/log/:rw |
Nico Huber | a1a296f | 2023-06-25 10:07:07 +0000 | [diff] [blame] | 40 | gerrit: |
| 41 | build: |
| 42 | context: . |
| 43 | dockerfile: gerrit/Dockerfile |
| 44 | env_file: gerrit/environment |
| 45 | environment: |
| 46 | - HTTPD_LISTEN_URL=proxy-https://*:8080/ |
| 47 | networks: |
| 48 | - gerritnet |
| 49 | volumes: |
| 50 | - ./logs/gerrit/:/var/gerrit/logs/:rw |
| 51 | - ./gerrit/etc/:/var/gerrit/etc/:rw |
| 52 | - ./gerrit/db/:/var/gerrit/db/:rw |
| 53 | - ./gerrit/git/:/var/gerrit/git/:rw |
| 54 | - ./gerrit/index/:/var/gerrit/index/:rw |
| 55 | - ./gerrit/cache/:/var/gerrit/cache/:rw |
Nico Huber | 5407310 | 2023-06-25 11:36:59 +0000 | [diff] [blame] | 56 | - ./gerrit/gerrit-oauth-provider.jar:/var/gerrit/plugins/gerrit-oauth-provider.jar:ro |
Nico Huber | 804b41b | 2023-07-02 15:53:42 +0000 | [diff] [blame] | 57 | mailserver: |
| 58 | image: ghcr.io/docker-mailserver/docker-mailserver:12 |
| 59 | #container_name: mailserver |
| 60 | # Provide the FQDN of your mail server here (Your DNS MX record should point to this value) |
| 61 | hostname: mail.${SA_PUBLIC_DOMAIN_NAME} |
| 62 | env_file: mail/mailserver.env |
| 63 | # More information about the mail-server ports: |
| 64 | # https://docker-mailserver.github.io/docker-mailserver/latest/config/security/understanding-the-ports/ |
| 65 | # To avoid conflicts with yaml base-60 float, DO NOT remove the quotation marks. |
| 66 | ports: |
| 67 | - "25:25" # SMTP (explicit TLS => STARTTLS) |
| 68 | - "143:143" # IMAP4 (explicit TLS => STARTTLS) |
| 69 | - "465:465" # ESMTP (implicit TLS) |
| 70 | - "587:587" # ESMTP (explicit TLS => STARTTLS) |
| 71 | - "993:993" # IMAP4 (implicit TLS) |
| 72 | volumes: |
| 73 | - ./logs/mail-supervisor/:/var/log/supervisor/:rw |
| 74 | - ./logs/mail/:/var/log/mail/:rw |
Nico Huber | 49781a7 | 2023-07-02 16:29:22 +0000 | [diff] [blame] | 75 | - ./certs/:/etc/letsencrypt/:ro |
Nico Huber | 804b41b | 2023-07-02 15:53:42 +0000 | [diff] [blame] | 76 | - ./mail/data/:/var/mail/:rw |
| 77 | - ./mail/state/:/var/mail-state/:rw |
| 78 | - ./mail/config/:/tmp/docker-mailserver/:rw |
Nico Huber | 22aecea | 2023-07-19 01:39:58 +0000 | [diff] [blame] | 79 | - ./mail/rspamd-override.d/:/etc/rspamd/override.d/:rw |
Nico Huber | 804b41b | 2023-07-02 15:53:42 +0000 | [diff] [blame] | 80 | - /etc/localtime:/etc/localtime:ro |
| 81 | restart: always |
| 82 | stop_grace_period: 1m |
| 83 | # Uncomment if using `ENABLE_FAIL2BAN=1`: |
| 84 | # cap_add: |
| 85 | # - NET_ADMIN |
| 86 | healthcheck: |
| 87 | test: "ss --listening --tcp | grep -P 'LISTEN.+:smtp' || exit 1" |
| 88 | timeout: 3s |
| 89 | retries: 0 |
Nico Huber | 8cd50ee | 2023-06-24 15:35:16 +0000 | [diff] [blame] | 90 | networks: |
| 91 | simpleidnet: |
| 92 | driver: bridge |
Nico Huber | 4bc2bdd | 2023-07-01 22:33:36 +0000 | [diff] [blame] | 93 | ipam: |
| 94 | config: |
| 95 | - subnet: 10.12.14.16/29 |
Nico Huber | a1a296f | 2023-06-25 10:07:07 +0000 | [diff] [blame] | 96 | gerritnet: |
| 97 | driver: bridge |
Nico Huber | 4bc2bdd | 2023-07-01 22:33:36 +0000 | [diff] [blame] | 98 | ipam: |
| 99 | config: |
| 100 | - subnet: 10.12.14.24/29 |