Skip to content

Instantly share code, notes, and snippets.

@royboy5
Last active July 17, 2018 19:59
Show Gist options
  • Save royboy5/3d71fc99a1cb600289b3f8b4423ad6ae to your computer and use it in GitHub Desktop.
Save royboy5/3d71fc99a1cb600289b3f8b4423ad6ae to your computer and use it in GitHub Desktop.
version: '3'
services:
mysql:
build: ./docker/mysql
image: mysql:latest
container_name: "mysql"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: waldo
MYSQL_USER: waldo
MYSQL_PASSWORD: password
ports:
- 3306:3306
volumes:
- ./data/db:/var/lib/mysql
waldo-api:
build: ./docker/waldo-api
image: mhart/alpine-node
container_name: "waldo-api"
privileged: true
ports:
- 3000:3000
volumes:
- .:/app
working_dir: /app
links:
- mysql
depends_on:
- mysql
environment:
- DOCKER=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment