Created
October 27, 2016 18:42
-
-
Save ahmadshah/9a82d5c9af44cd3eeab24ea9fef51a67 to your computer and use it in GitHub Desktop.
elixir docker
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: 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