port puvlished

master
This commit is contained in:
Maciej Krok 2020-03-20 15:57:37 +01:00
parent 6c13bb754c
commit 89b0043bc9

View File

@ -2,6 +2,11 @@ version: '3.4'
services: services:
database: database:
image: postgres:12 image: postgres:12
ports:
- target: 5432
published: ${DBPORT}
protocol: tcp
mode: host
volumes: volumes:
- dbdata:/var/lib/postgresql/data - dbdata:/var/lib/postgresql/data
environment: environment:
@ -16,3 +21,4 @@ volumes:
### Environment variables ### Environment variables
# DBUSER # DBUSER
# DBPASS # DBPASS
# DBPORT