Skip to content

Instantly share code, notes, and snippets.

@dnaprawa
Last active November 10, 2019 11:17
Show Gist options
  • Save dnaprawa/8abb4b59912e286a48024077df1090a2 to your computer and use it in GitHub Desktop.
Save dnaprawa/8abb4b59912e286a48024077df1090a2 to your computer and use it in GitHub Desktop.
version: '3.2'
services:
visitbooker-postgres:
image: postgres:9.6
restart: always
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: <your_password_here>
POSTGRES_USER: <your_username_here>
volumes:
- visitbookerpgdata:/var/lib/postgresql/data
networks:
- visitbookernetwork
visitbooker-app:
ports:
- 80:80
links:
- visitbooker-postgres
depends_on:
- visitbooker-postgres
restart: unless-stopped
networks:
- visitbookernetwork
volumes:
visitbookerpgdata:
networks:
visitbookernetwork:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment