parsley/docker-compose.yml
2018-04-02 11:21:35 -05:00

28 lines
485 B
YAML

version: '3'
services:
postgres:
image: postgres:9.3
environment:
- POSTGRES_PASSWORD=mysecretpassword
- POSTGRES_USER=parsley
volumes:
- sql-data:/var/lib/postgresql/data
memcache:
image: memcached:1.5.4-alpine
command: memcached -m 512
web:
build: .
environment:
- RAILS_USE_MEMCACHE=true
- RAILS_LOG_TO_STDOUT=true
ports:
- "3000:80"
links:
- postgres
volumes:
sql-data:
driver: local