forked from indice-co/Indice.Platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (38 loc) · 905 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.5'
services:
postgres:
container_name: postgres
image: postgres:12.3
environment:
POSTGRES_USER: ${POSTGRES_USER:-indicedb}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-1nD1c3_@}
PGDATA: /var/lib/postgresql/data
volumes:
- postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- postgres
restart: always
pgadmin:
container_name: pgadmin
image: pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:[email protected]}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-123abc!}
volumes:
- pgadmin:/root/.pgadmin
ports:
- "${PGADMIN_PORT:-5050}:80"
build:
context: ./data/pg-admin/
dockerfile: Dockerfile
networks:
- postgres
restart: always
networks:
postgres:
driver: bridge
volumes:
postgres:
pgadmin: