Skip to content

Instantly share code, notes, and snippets.

@andreleoni
Created August 26, 2017 02:41
Show Gist options
  • Save andreleoni/7ee36bc4a7b5855f75e53486da3060e0 to your computer and use it in GitHub Desktop.
Save andreleoni/7ee36bc4a7b5855f75e53486da3060e0 to your computer and use it in GitHub Desktop.
My default ruby docker-compose
version: '2'
services:
postgres:
image: 'postgres:9.5'
volumes:
- 'postgres:/var/lib/postgresql/data'
redis:
image: 'redis:3.2-alpine'
command: redis-server
ports:
- '6379:6379'
volumes:
- 'redis:/var/lib/redis/data'
jobs:
depends_on:
- 'postgres'
- 'redis'
- 'website'
build: .
command: bash start_jobs.sh
volumes:
- '.:/my_app'
volumes_from:
- box
website:
depends_on:
- 'postgres'
- 'redis'
build: .
command: bash start.sh
ports:
- '3000:3000'
volumes:
- '.:/my_app'
volumes_from:
- box
box:
image: busybox
volumes:
- /box
mailcatcher:
image: yappabe/mailcatcher
ports:
- 1025:1025
- 1080:1080
volumes:
redis:
postgres:
box:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment