-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
22 lines (20 loc) · 867 Bytes
/
docker-compose.yml
File metadata and controls
22 lines (20 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
version: '3.6'
services:
#================================================================================================
# POSTGRESQL
#================================================================================================
postgresql:
restart: always
build:
context: .
ports:
- "8119:5432"
volumes:
- /etc/localtime:/etc/localtime:ro
- ./data/postgresql:/var/lib/postgresql # volume for data
environment:
- POSTGRES_VERSION=12.5
- 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)