generated from BloomTech-Labs/labs-api-node-starter
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
38 lines (35 loc) · 955 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
version: '3'
services:
pg:
image: postgres
container_name: pg-api-starter
ports:
- '5400:5432'
environment:
- POSTGRES_USER=docker
- POSTGRES_PASSWORD=docker
- POSTGRES_DB=api-dev
volumes:
- ./docker/pg/postgres.conf:/etc/postgresql/postgresql.conf
- ./data/pg:/var/lib/postgresql/data
command: postgres -c config_file=/etc/postgresql/postgresql.conf
networks:
- postgres
restart: always
pgadmin:
container_name: pgadmin_labs
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-pgadmin4@pgadmin.org}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
PGADMIN_SERVER_JSON_FILE: /tmp/.pgadmin/servers.json
volumes:
- ./data/pgadmin:/tmp/.pgadmin
ports:
- "${PGADMIN_PORT:-5050}:80"
networks:
- postgres
restart: unless-stopped
networks:
postgres:
driver: bridge