version services postgres-metrix image postgres 10-alpine container_na

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
version: "3"
services:
postgres-metrix:
image: postgres:10-alpine
container_name: postgres-metrix
restart: always
volumes:
- postgres-metrix-data:/var/lib/postgresql/data/pgdata
ports:
- 5432:5432
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_DB: metrix
POSTGRES_USER: metrixuser
POSTGRES_PASSWORD: metrixpsw