-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
60 lines (55 loc) · 1.12 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: '3'
services:
app:
build: .
container_name: app
command: sh -c "./run.sh"
environment:
PGUSER: andre_paes
PGPASSWORD: postgres
PGDATABASE: api_banking_dev
PGPORT: 5432
PGHOST: db
TEST_DB: db_test
ports:
- "4000:4000"
working_dir: /app
depends_on:
- db
networks:
- backend
volumes:
- ./:/app
db:
image: postgres:latest
ports:
- "5432:5432"
environment:
POSTGRES_USER: andre_paes
POSTGRES_PASSWORD: postgres
POSTGRES_DB: api_banking_dev
PGDATA: /var/lib/postgresql/data/pgdata
restart: always
volumes:
- /.:/app
- pgdata_dev:/var/lib/postgresql/data
networks:
- backend
db_test:
image: postgres:latest
environment:
POSTGRES_USER: andre_paes
POSTGRES_PASSWORD: postgres
POSTGRES_DB: api_banking_test
PGDATA: /var/lib/postgresql/data/pgdata
restart: always
volumes:
- pgdata_test:/var/lib/postgresql/data
networks:
- backend
volumes:
pgdata_test:
pgdata_dev:
networks:
backend:
driver: bridge