-
-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathdocker-compose.jit.yml
More file actions
51 lines (46 loc) · 1.18 KB
/
docker-compose.jit.yml
File metadata and controls
51 lines (46 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: supavisor-jit
services:
builder:
build:
context: ./priv/jit
dockerfile: Dockerfile.builder
target: builder
volumes:
- jitlib:/out
command: ["true"]
db:
build:
context: ./priv/jit/postgres
dockerfile: Dockerfile
depends_on:
- builder
volumes:
- jitlib:/usr/lib/security/
- ./priv/jit/postgres/pg_hba.conf:/etc/postgresql/pg_hba.conf
- ./priv/jit/pam.d/postgresql:/etc/pam.d/postgres
- ./priv/jit/pam.d/postgresql:/etc/pam.d/postgresql
- ./priv/jit/postgres/certs/server.crt:/tmp/server.crt
- ./priv/jit/postgres/certs/server.key:/tmp/server.key
- ./priv/jit/postgres/certs/ca.crt:/tmp/ca.crt
- ./priv/jit/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
command: postgres
environment:
POSTGRES_HOST: /var/run/postgresql
POSTGRES_PASSWORD: postgres
PAM_MODULE_PATH: /usr/lib/security/pam_jit_pg.so
ports:
- "7543:5432"
networks:
- appnet
api:
build:
context: ./priv/jit/jit_api_service
dockerfile: Dockerfile
ports:
- "8080:8080"
networks:
- appnet
volumes:
jitlib:
networks:
appnet: