-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
47 lines (43 loc) · 973 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
44
45
46
version: '3'
services:
resspect:
tty: true
container_name: resspect
build: ./
ports:
- "8081:8081"
depends_on:
- "db"
volumes:
- type: bind
source: ./resspect
target: /resspect
- type: bind
source: ./secrets
target: /secrets
environment:
- DB_USER=admin
- DB_PASS=verysecurepassword
- DB_HOST=resspectdb
- DB_PORT=5432
- DB_NAME=resspectdb
networks:
- tom_desc_default
db:
container_name: resspectdb
image: postgres
networks:
- tom_desc_default
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=verysecurepassword
- POSTGRES_DB=resspectdb
- POSTGRES_DATA_DIR=/docker-entrypoint-initdb.d
volumes:
- ./resspectdb.sql:/docker-entrypoint-initdb.d/resspectdb.sql
- type: bind
source: ./resspect
target: /resspect
networks:
tom_desc_default:
external: true