-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-postgres.yaml
40 lines (36 loc) · 1.06 KB
/
docker-compose-postgres.yaml
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
services:
db:
container_name: countrydb-postgres
image: postgres:15.2-alpine
environment:
POSTGRES_USER: reactiveuser
POSTGRES_PASSWORD: reactivepass
POSTGRES_DB: reactivedb
POSTGRES_HOST_AUTH_METHOD: trust
#password
ports:
- 5432:5432
# volumes:
# - ./db-postgres/db:/var/lib/postgresql/data
# - ./db-postgres/import:/import
networks:
- postgres
restart: unless-stopped
# https://github.com/khezen/compose-postgres/blob/master/docker-compose.yml
pgadmin:
container_name: countrydb-pgadmin
image: dpage/pgadmin4:7.4
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:[email protected]}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
PGADMIN_CONFIG_SERVER_MODE: False
volumes:
- ./db-postgres/pgadmin:/root/.pgadmin
ports:
- 8090:80
networks:
- postgres
restart: unless-stopped
networks:
postgres:
driver: bridge