-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
40 lines (38 loc) · 1.39 KB
/
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
39
40
version: "3.6"
services:
#================================================================================================
# POSTGRESQL
#================================================================================================
postgresql:
restart: always
image: dockerframework/postgresql:12.8
ports:
- "8119:5432"
volumes:
- /etc/localtime:/etc/localtime:ro
- ./data/postgresql:/var/lib/postgresql # volume for data
environment:
- POSTGRES_VERSION=12.8
- POSTGRES_ROOT_HOST=postgresql # grant user hostmask (optional)
- POSTGRES_DATABASE=laradock_postgresql # create database (optional)
- POSTGRES_USER=laradock # grant user name (optional)
- POSTGRES_PASSWORD=password # grant user password (optional)
#================================================================================================
# PGADMIN
#================================================================================================
pgadmin:
restart: always
build:
context: .
ports:
- "8114:80"
depends_on:
- postgresql
volumes:
- /etc/localtime:/etc/localtime:ro
- ./session/pgadmin:/sessions # volume for sessions
- ./data/pgadmin:/var/lib/pgadmin/storage
environment:
- PGADMIN_VERSION=5.7
- PGADMIN_DEFAULT_PASSWORD=password