-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (51 loc) · 1.13 KB
/
Copy pathdocker-compose.yml
File metadata and controls
54 lines (51 loc) · 1.13 KB
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
version: "3.3"
services:
postgres_db:
container_name: wb_postgres_container
image: postgres:15.1
environment:
POSTGRES_DB: wbTestTask
POSTGRES_USER: userDB
POSTGRES_PASSWORD: passwordDB
PGDATA: "pgdata"
volumes:
- ./postgres:/postgres
ports:
- "5432:5432"
expose:
- "5432"
networks:
- postgres
postgres_test_db:
container_name: wb_postgres_test_container
image: postgres:15.1
environment:
POSTGRES_DB: wbTestTask_Test
POSTGRES_USER: userDB_Test
POSTGRES_PASSWORD: passwordDB_Test
PGDATA: "pgdata_test"
volumes:
- ./postgres:/postgres
ports:
- "5433:5432"
expose:
- "5432"
networks:
- postgres
pgadmin:
container_name: wb_pgadmin_container
image: dpage/pgadmin4:6.17
environment:
PGADMIN_DEFAULT_EMAIL: pgAdmin@pg.com
PGADMIN_DEFAULT_PASSWORD: pgAdminPassword
PGADMIN_CONFIG_SERVER_MODE: "False"
volumes:
- ./pgadmin:/pgadmin
ports:
- "5050:80"
restart: unless-stopped
networks:
- postgres
networks:
postgres:
driver: bridge