blob: b700a60071c0da3d1617950156cce8c45e22ab7a [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 Huberd6528722023-07-01 14:38:39 +000020 - ./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 Huber8cd50ee2023-06-24 15:35:16 +000023 - ./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 Huberd6528722023-07-01 14:38:39 +000029 env_file: environment
Nico Huber8cd50ee2023-06-24 15:35:16 +000030 networks:
31 - simpleidnet
32 volumes:
33 - ./simpleid/cache/:/var/cache/simpleid/:rw
Nico Huberd6528722023-07-01 14:38:39 +000034 - ./simpleid/identities/:/var/db/simpleid-templates/:ro
Nico Huber8cd50ee2023-06-24 15:35:16 +000035 - ./simpleid/store/:/var/lib/simpleid/:rw
Nico Huberd6528722023-07-01 14:38:39 +000036 - ./simpleid/www/:/var/www/simpleid/:ro
Nico Huber8cd50ee2023-06-24 15:35:16 +000037 - ./logs/simpleid/:/var/log/:rw
Nico Hubera1a296f2023-06-25 10:07:07 +000038 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 Huber54073102023-06-25 11:36:59 +000054 - ./gerrit/gerrit-oauth-provider.jar:/var/gerrit/plugins/gerrit-oauth-provider.jar:ro
Nico Huber8cd50ee2023-06-24 15:35:16 +000055networks:
56 simpleidnet:
57 driver: bridge
Nico Huber4bc2bdd2023-07-01 22:33:36 +000058 ipam:
59 config:
60 - subnet: 10.12.14.16/29
Nico Hubera1a296f2023-06-25 10:07:07 +000061 gerritnet:
62 driver: bridge
Nico Huber4bc2bdd2023-07-01 22:33:36 +000063 ipam:
64 config:
65 - subnet: 10.12.14.24/29