Skip to content

Instantly share code, notes, and snippets.

@ulhas
Created April 9, 2017 20:32
Show Gist options
  • Save ulhas/f3538ba40781c468d69ddf991f7204b0 to your computer and use it in GitHub Desktop.
Save ulhas/f3538ba40781c468d69ddf991f7204b0 to your computer and use it in GitHub Desktop.
Docker compose file for SailsJS app
version: '2'
volumes:
postgres_data_dev: {}
postgres_backup_dev: {}
services:
postgres:
build: ./compose/postgres
volumes:
- postgres_data_dev:/var/lib/postgresql/data
- postgres_backup_dev:/backups
environment:
- POSTGRES_USER=test_project
sails:
build:
context: .
dockerfile: ./compose/sails/Dockerfile
command: /start-dev.sh
depends_on:
- postgres
environment:
- POSTGRES_USER=test_project
- USE_DOCKER=yes
volumes:
- .:/app
ports:
- "8000:8000"
links:
- postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment