Skip to content

Instantly share code, notes, and snippets.

@alovak
Created November 13, 2017 08:47
Show Gist options
  • Save alovak/a2ab0fa0d6ae40fc1cf8a85658ce2e62 to your computer and use it in GitHub Desktop.
Save alovak/a2ab0fa0d6ae40fc1cf8a85658ce2e62 to your computer and use it in GitHub Desktop.
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