Created
August 26, 2017 02:41
-
-
Save andreleoni/7ee36bc4a7b5855f75e53486da3060e0 to your computer and use it in GitHub Desktop.
My default ruby docker-compose
This file contains hidden or 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.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