Last active
January 4, 2019 17:51
-
-
Save gmcabrita/2b962570896bef7c4d7d62af113e5bcc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
db: | |
image: postgres | |
container_name: db | |
environment: | |
POSTGRES_USER: "${USER}" | |
# POSTGRES_DB: default_db | |
# POSTGRES_PASSWORD: password | |
volumes: | |
- /opt/dev/volumes/postgres:/var/lib/postgresql/data | |
- /var/run/postgresql:/var/run/postgresql/ | |
ports: | |
- "5432:5432" | |
network_mode: "host" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Without docker-compose: