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 | d652872 | 2023-07-01 14:38:39 +0000 | [diff] [blame] | 20 | - ./simpleid/identities/:/var/db/simpleid-templates/:ro |
| 21 | - ./simpleid/www/:/var/www/simpleid/:ro |
| 22 | - ./nginx/sa.conf:/etc/nginx/conf.d/sa.conf.template:ro |
Nico Huber | 8cd50ee | 2023-06-24 15:35:16 +0000 | [diff] [blame] | 23 | - ./nginx/empty.conf:/etc/nginx/conf.d/default.conf:ro |
| 24 | - ./logs/nginx:/var/log/nginx/:rw |
| 25 | simpleid: |
| 26 | build: |
| 27 | context: . |
| 28 | dockerfile: simpleid/Dockerfile |
Nico Huber | d652872 | 2023-07-01 14:38:39 +0000 | [diff] [blame] | 29 | env_file: environment |
Nico Huber | 8cd50ee | 2023-06-24 15:35:16 +0000 | [diff] [blame] | 30 | networks: |
| 31 | - simpleidnet |
| 32 | volumes: |
| 33 | - ./simpleid/cache/:/var/cache/simpleid/:rw |
Nico Huber | d652872 | 2023-07-01 14:38:39 +0000 | [diff] [blame] | 34 | - ./simpleid/identities/:/var/db/simpleid-templates/:ro |
Nico Huber | 8cd50ee | 2023-06-24 15:35:16 +0000 | [diff] [blame] | 35 | - ./simpleid/store/:/var/lib/simpleid/:rw |
Nico Huber | d652872 | 2023-07-01 14:38:39 +0000 | [diff] [blame] | 36 | - ./simpleid/www/:/var/www/simpleid/:ro |
Nico Huber | 8cd50ee | 2023-06-24 15:35:16 +0000 | [diff] [blame] | 37 | - ./logs/simpleid/:/var/log/:rw |
Nico Huber | a1a296f | 2023-06-25 10:07:07 +0000 | [diff] [blame] | 38 | gerrit: |
| 39 | build: |
| 40 | context: . |
| 41 | dockerfile: gerrit/Dockerfile |
| 42 | env_file: gerrit/environment |
| 43 | environment: |
| 44 | - HTTPD_LISTEN_URL=proxy-https://*:8080/ |
| 45 | networks: |
| 46 | - gerritnet |
| 47 | volumes: |
| 48 | - ./logs/gerrit/:/var/gerrit/logs/:rw |
| 49 | - ./gerrit/etc/:/var/gerrit/etc/:rw |
| 50 | - ./gerrit/db/:/var/gerrit/db/:rw |
| 51 | - ./gerrit/git/:/var/gerrit/git/:rw |
| 52 | - ./gerrit/index/:/var/gerrit/index/:rw |
| 53 | - ./gerrit/cache/:/var/gerrit/cache/:rw |
Nico Huber | 5407310 | 2023-06-25 11:36:59 +0000 | [diff] [blame] | 54 | - ./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] | 55 | networks: |
| 56 | simpleidnet: |
| 57 | driver: bridge |
Nico Huber | 4bc2bdd | 2023-07-01 22:33:36 +0000 | [diff] [blame] | 58 | ipam: |
| 59 | config: |
| 60 | - subnet: 10.12.14.16/29 |
Nico Huber | a1a296f | 2023-06-25 10:07:07 +0000 | [diff] [blame] | 61 | gerritnet: |
| 62 | driver: bridge |
Nico Huber | 4bc2bdd | 2023-07-01 22:33:36 +0000 | [diff] [blame] | 63 | ipam: |
| 64 | config: |
| 65 | - subnet: 10.12.14.24/29 |