Created
November 13, 2017 08:47
-
-
Save alovak/a2ab0fa0d6ae40fc1cf8a85658ce2e62 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: '2' | |
services: | |
postgres: | |
image: 'postgres:9.6-alpine' | |
environment: | |
POSTGRES_USER: 'user' | |
POSTGRES_PASSWORD: 'pass' | |
ports: | |
- '5432:5432' | |
volumes: | |
- 'postgres:/var/lib/postgresql/data' | |
redis: | |
image: 'redis:3.2-alpine' | |
command: redis-server --requirepass yourpassword | |
ports: | |
- '6379:6379' | |
volumes: | |
- 'redis:/data' | |
website: | |
depends_on: | |
- 'postgres' | |
- 'redis' | |
build: . | |
ports: | |
- '3000:3000' | |
volumes: | |
- '.:/app' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment