Last active
October 20, 2016 05:22
-
-
Save imranismail/b839ec42d9705e1f2a057b3306097c6c to your computer and use it in GitHub Desktop.
A quick development environment for Elixir apps using 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: | |
db: | |
image: postgres | |
restart: always | |
environment: | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_USER: postgres | |
volumes: | |
- ./.data/postgres:/var/lib/postgresql/data | |
app: | |
image: 127labs/phoenix | |
depends_on: | |
- db | |
volumes: | |
- .:/srv | |
links: | |
- db | |
ports: | |
- 4000:4000 | |
restart: always | |
environment: | |
POSTGRES_HOST: db | |
POSTGRES_USERNAME: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DATABASE: colliber | |
MIX_ENV: dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment