blob: c303417e6d0f709f94e2d7217416d59e816eac5c [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
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 Huber54073102023-06-25 11:36:59 +000056 - ./gerrit/gerrit-oauth-provider.jar:/var/gerrit/plugins/gerrit-oauth-provider.jar:ro
Nico Huber8cd50ee2023-06-24 15:35:16 +000057networks:
58 simpleidnet:
59 driver: bridge
Nico Huber4bc2bdd2023-07-01 22:33:36 +000060 ipam:
61 config:
62 - subnet: 10.12.14.16/29
Nico Hubera1a296f2023-06-25 10:07:07 +000063 gerritnet:
64 driver: bridge
Nico Huber4bc2bdd2023-07-01 22:33:36 +000065 ipam:
66 config:
67 - subnet: 10.12.14.24/29