Created
January 28, 2020 02:07
-
-
Save bergpb/23898b672893b0e503c71ef960d78d0e to your computer and use it in GitHub Desktop.
Docker compose exemple
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' | |
| services: | |
| flask: | |
| build: app/. | |
| container_name: controle-maquinas-flask | |
| links: | |
| - database | |
| restart: always | |
| ports: | |
| - 5000:5000 | |
| volumes: | |
| - ./app:/home/app | |
| depends_on: | |
| - database | |
| networks: | |
| - controle-maquinas | |
| database: | |
| image: mariadb:10.2 | |
| container_name: controle-maquinas-mariadb | |
| ports: | |
| - 3306:3306 | |
| environment: | |
| - MYSQL_ROOT_PASSWORD=root | |
| - MYSQL_DATABASE=controle_maquinas_dev | |
| - MYSQL_USER=root | |
| - MYSQL_PASSWORD=root | |
| volumes: | |
| - ./db:/var/lib/mysql | |
| networks: | |
| - controle-maquinas | |
| networks: | |
| controle-maquinas: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment