Skip to content

Instantly share code, notes, and snippets.

@ahmadshah
Created October 27, 2016 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ahmadshah/9a82d5c9af44cd3eeab24ea9fef51a67 to your computer and use it in GitHub Desktop.
Save ahmadshah/9a82d5c9af44cd3eeab24ea9fef51a67 to your computer and use it in GitHub Desktop.
elixir docker
version: '2'
services:
db:
image: mariadb
restart: always
volumes:
- ./docker/data/mysql:/var/lib/mysql
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: "foobar"
MYSQL_USER: "docker"
MYSQL_PASSWORD: "docker"
MYSQL_ROOT_PASSWORD: "root"
app:
image: 127labs/phoenix
depends_on:
- db
volumes:
- .:/playground
links:
- db
ports:
- 4000:4000
environment:
MIX_ENV: dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment