Skip to content

Commit 882272d

Browse files
committed
Add dependencies postgresql container for pgadmin
1 parent f4a0f46 commit 882272d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docker-compose.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@ version: '3.2'
22

33
services:
44

5+
#================================================================================================
6+
# POSTGRESQL
7+
#================================================================================================
8+
postgresql:
9+
restart: always
10+
image: dockerframework/postgresql
11+
ports:
12+
- "8119:5432"
13+
volumes:
14+
- /etc/localtime:/etc/localtime:ro
15+
- ./data/postgresql:/var/lib/postgresql # volume for data
16+
environment:
17+
- POSTGRES_VERSION=10.2
18+
- POSTGRES_ROOT_HOST=postgresql # grant user hostmask (optional)
19+
- POSTGRES_DATABASE=laradock_postgresql # create database (optional)
20+
- POSTGRES_USER=laradock # grant user name (optional)
21+
- POSTGRES_PASSWORD=password # grant user password (optional)
22+
523
#================================================================================================
624
# PGADMIN
725
#================================================================================================

0 commit comments

Comments
 (0)