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 | 8cd50ee | 2023-06-24 15:35:16 +0000 | [diff] [blame] | 57 | networks: |
| 58 | simpleidnet: |
| 59 | driver: bridge |
Nico Huber | 4bc2bdd | 2023-07-01 22:33:36 +0000 | [diff] [blame] | 60 | ipam: |
| 61 | config: |
| 62 | - subnet: 10.12.14.16/29 |
Nico Huber | a1a296f | 2023-06-25 10:07:07 +0000 | [diff] [blame] | 63 | gerritnet: |
| 64 | driver: bridge |
Nico Huber | 4bc2bdd | 2023-07-01 22:33:36 +0000 | [diff] [blame] | 65 | ipam: |
| 66 | config: |
| 67 | - subnet: 10.12.14.24/29 |