Created
April 9, 2017 20:32
-
-
Save ulhas/f3538ba40781c468d69ddf991f7204b0 to your computer and use it in GitHub Desktop.
Docker compose file for SailsJS app
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: '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