-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 843 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (37 loc) · 843 Bytes
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
# PostgreSQL development database
services:
postgresql-dev:
container_name: postgresql-dev
image: postgres:latest
restart: unless-stopped
ports:
- "15432:5432/tcp"
environment:
- POSTGRES_DB=db-dev
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- ./postgresql_volume:/var/lib/postgresql/data:rw,Z
stdin_open: true
tty: true
networks:
- postgres
postgresql-test-e2e:
container_name: postgresql-test-e2e
image: postgres:latest
restart: unless-stopped
ports:
- "25432:5432/tcp"
environment:
- POSTGRES_DB=db-test-e2e
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
stdin_open: true
tty: true
networks:
- postgres
volumes:
postgresql_volume:
networks:
postgres:
driver: bridge