forked from Sasnaka-Sansada/sasnaka-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (40 loc) · 961 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
version: "3.8"
services:
db:
container_name: sasnaka-db
image: postgres
environment:
DATABASE_HOST: 127.0.0.1
POSTGRES_PASSWORD: ${DEV_PWD}
POSTGRES_USER: ${DEV_USER}
POSTGRES_DB: ${DEV_DB}
volumes:
- ./pgdata:/var/lib/postgresql/data
ports:
- "5433:5433"
test_db:
container_name: sasnaka-testdb
image: postgres
environment:
DATABASE_HOST: 127.0.0.1
POSTGRES_PASSWORD: ${TEST_PWD}
POSTGRES_USER: ${TEST_USER}
POSTGRES_DB: ${TEST_DB}
volumes:
- ./pgdata_test:/var/lib/postgresql/data
ports:
- "5432:5432"
sasnaka-backend:
build: .
container_name: sasnaka-backend
image: sasnaka-backend
stdin_open: true # docker run -i
tty: true # docker run -t
restart: on-failure
depends_on:
- db
- test_db
ports:
- "8000:8000"
volumes:
- ./:/home/app