-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (42 loc) · 975 Bytes
/
docker-compose.yml
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
services:
webapi:
image: tf2jumpxyz-webapi:latest
env_file:
- ./secrets/db.env
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_URLS=http://+:80
- ConnectionStrings__DefaultConnection=host=host.docker.internal;port=5432;database=${POSTGRES_DB};username=${POSTGRES_USER};password=${POSTGRES_PASSWORD}
ports:
- 6001:80
depends_on:
- db
networks:
- internal
webui:
image: tf2jumpxyz-webui:latest
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_URLS=http://+:80
user: "${UID}:${GID}"
ports:
- 6002:80
volumes:
- ./data/keys:/data/keys:rw
depends_on:
- webapi
networks:
- internal
db:
image: postgres
restart: always
shm_size: 128mb
volumes:
- ./postgres-data:/var/lib/postgresql/data
env_file:
- ./secrets/db.env
networks:
- internal
networks:
internal:
driver: bridge