Last active
April 13, 2019 22:19
-
-
Save standinga/3157c5e056f0cb6dd8dc788e43d8a658 to your computer and use it in GitHub Desktop.
Docker compose server for medium article
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: "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