forked from lugvitc/pwncore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
31 lines (31 loc) · 951 Bytes
/
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
services:
web:
image: reg.lugvitc.net/pwncore:latest
ports:
- ${PORT}:8000
environment:
- DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
- WORKERS=${WORKERS}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${CONFIG_FILE}:/app/src/pwncore/config.py
depends_on:
- db
db:
image: postgres:14
user: ${UID}:${GID}
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- ${DATA_PATH}:/var/lib/postgresql/data
ports:
- 5432:5432
admin:
image: mathesar/mathesar-prod:latest
ports:
- ${PORT_ADMIN}:8000
depends_on:
- db