generated from BloomTech-Labs/coder-heroes-be-a
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
38 lines (35 loc) · 967 Bytes
/
docker-compose.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
version: '3'
services:
pgFp:
image: postgres
container_name: pgFP-api-starter
ports:
- '5544:5432'
environment:
- POSTGRES_USER=docker
- POSTGRES_PASSWORD=docker
- POSTGRES_DB=FP-api-starter
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
pgadminFp:
container_name: pgfpadmin_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:-5051}:80"
networks:
- postgres
restart: unless-stopped
networks:
postgres:
driver: bridge