Skip to content

Instantly share code, notes, and snippets.

@standinga
Last active April 13, 2019 22:19
Show Gist options
  • Save standinga/3157c5e056f0cb6dd8dc788e43d8a658 to your computer and use it in GitHub Desktop.
Save standinga/3157c5e056f0cb6dd8dc788e43d8a658 to your computer and use it in GitHub Desktop.
Docker compose server for medium article
version: "3.7"
services:
api:
image: borama.info/todos:latest
networks:
- boramanet
depends_on:
- "db"
env_file:
- .env
ports:
- "9081:8080"
volumes:
- ./Public/todos:/app/Public/todos #host_dir:docker_dir
working_dir: /app
container_name: todo_server
db:
image: mysql:5
env_file:
- .env
networks:
- boramanet
container_name: todo_server_db
networks:
boramanet:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment