-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
52 lines (52 loc) · 1.16 KB
/
docker-compose.yaml
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
52
services:
db:
image: postgres
command: -c 'max_connections=500'
restart: always
shm_size: 128mb
volumes:
- ${DATA_DIR}/db:/data/postgres
ports:
- "${DB_HOST_PORT}:5432"
environment:
POSTGRES_PASSWORD: ${DB_PASSWD}
PGDATA: /data/postgres
app:
build: .
restart: always
environment:
GITHUB_TOKEN: ${GITHUB_TOKEN}
volumes:
- ${DATA_DIR}/config:/config:ro
- ${DATA_DIR}/rec:/data/rec
- ${DATA_DIR}/log:/data/log
- ${STORAGE_DIR}:/storage
- ${GENTOO_PREFIX_DIR}:/root/gentoo
apiserver:
build: .
restart: always
command:
- /app/apiserver
- -config
- /config/config.json
ports:
- "${APISERVER_HOST_PORT}:8080"
volumes:
- ${DATA_DIR}/config:/config:ro
web:
container_name: pgweb
restart: always
image: sosedoff/pgweb
ports:
- "${WEB_HOST_PORT}:8081"
entrypoint:
- "/usr/bin/pgweb"
- "--bind=0.0.0.0"
- "--listen=8081"
- "--readonly"
- "--host=db"
- "--port=5432"
- "--user=postgres"
- "--pass=${DB_PASSWD}"
- "--db=criticality_score"
- "--ssl=disable"