Skip to content

Instantly share code, notes, and snippets.

version: '3.2'
networks:
example:
ipam:
driver: default
config:
- subnet: 172.20.0.0/16
services:
# rdbms:
# image: postgres:10.2
version: '3'
services:
rdbms:
image: postgres:10.2
container_name: "justgo-postgres"
restart: always
volumes:
- /var/lib/postgresql/data
environment:
- POSTGRES_DB=justgo_db
version: '2'
services:
rdbms:
image: postgres:10.2
container_name: "test-postgres"
restart: always
volumes:
- /var/lib/postgresql/data
environment:
- POSTGRES_DB=test