Skip to content

Instantly share code, notes, and snippets.

@royboy5
Last active July 17, 2018 19:59

Revisions

  1. royboy5 revised this gist Jul 17, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,7 @@ version: '3'

    services:
    mysql:
    build: ./docker/mysql
    image: mysql:latest
    container_name: "mysql"
    environment:
  2. royboy5 revised this gist Jul 17, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@ services:
    ports:
    - 3306:3306
    volumes:
    - ./data/db:/data/db
    - ./data/db:/var/lib/mysql

    waldo-api:
    build: ./docker/waldo-api
  3. royboy5 created this gist Jul 17, 2018.
    32 changes: 32 additions & 0 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    version: '3'

    services:
    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:/data/db

    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