blob: 6d91d78e012c9881687a9643ff166cfdf505babe [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 Huberd6528722023-07-01 14:38:39 +00007 env_file: environment
Nico Huber8cd50ee2023-06-24 15:35:16 +00008 ports:
9 - "80:80"
Nico Huber38c14da2023-06-24 16:59:28 +000010 - "443:443"
Nico Huber8cd50ee2023-06-24 15:35:16 +000011 networks:
12 - simpleidnet
Nico Hubera1a296f2023-06-25 10:07:07 +000013 - gerritnet
Nico Huber8cd50ee2023-06-24 15:35:16 +000014 volumes:
Nico Huberd6528722023-07-01 14:38:39 +000015 - ./simpleid/identities/:/var/db/simpleid-templates/:ro
16 - ./simpleid/www/:/var/www/simpleid/:ro
17 - ./nginx/sa.conf:/etc/nginx/conf.d/sa.conf.template:ro
Nico Huber8cd50ee2023-06-24 15:35:16 +000018 - ./nginx/empty.conf:/etc/nginx/conf.d/default.conf:ro
19 - ./logs/nginx:/var/log/nginx/:rw
20 simpleid:
21 build:
22 context: .
23 dockerfile: simpleid/Dockerfile
Nico Huberd6528722023-07-01 14:38:39 +000024 env_file: environment
Nico Huber8cd50ee2023-06-24 15:35:16 +000025 networks:
26 - simpleidnet
27 volumes:
28 - ./simpleid/cache/:/var/cache/simpleid/:rw
Nico Huberd6528722023-07-01 14:38:39 +000029 - ./simpleid/identities/:/var/db/simpleid-templates/:ro
Nico Huber8cd50ee2023-06-24 15:35:16 +000030 - ./simpleid/store/:/var/lib/simpleid/:rw
Nico Huberd6528722023-07-01 14:38:39 +000031 - ./simpleid/www/:/var/www/simpleid/:ro
Nico Huber8cd50ee2023-06-24 15:35:16 +000032 - ./logs/simpleid/:/var/log/:rw
Nico Hubera1a296f2023-06-25 10:07:07 +000033 gerrit:
34 build:
35 context: .
36 dockerfile: gerrit/Dockerfile
37 env_file: gerrit/environment
38 environment:
39 - HTTPD_LISTEN_URL=proxy-https://*:8080/
40 networks:
41 - gerritnet
42 volumes:
43 - ./logs/gerrit/:/var/gerrit/logs/:rw
44 - ./gerrit/etc/:/var/gerrit/etc/:rw
45 - ./gerrit/db/:/var/gerrit/db/:rw
46 - ./gerrit/git/:/var/gerrit/git/:rw
47 - ./gerrit/index/:/var/gerrit/index/:rw
48 - ./gerrit/cache/:/var/gerrit/cache/:rw
Nico Huber54073102023-06-25 11:36:59 +000049 - ./gerrit/gerrit-oauth-provider.jar:/var/gerrit/plugins/gerrit-oauth-provider.jar:ro
Nico Huber8cd50ee2023-06-24 15:35:16 +000050networks:
51 simpleidnet:
52 driver: bridge
Nico Hubera1a296f2023-06-25 10:07:07 +000053 gerritnet:
54 driver: bridge