Created
March 23, 2022 13:16
-
-
Save lucatsf/1e60814a74e02d42945256d72db0181a to your computer and use it in GitHub Desktop.
Dockerfile to use mysql and node
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: | |
app: | |
build: . | |
command: yarn start | |
ports: | |
- '3000:3000' | |
volumes: | |
- .:/usr/app | |
db: | |
container_name: 'database-node' | |
image: mysql:5.7.31 | |
command: --default-authentication-plugin=mysql_native_password --sql_mode=NO_ENGINE_SUBSTITUTION,NO_AUTO_CREATE_USER --explicit_defaults_for_timestamp | |
restart: always | |
ports: | |
- '3308:3306' | |
environment: | |
- MYSQL_ROOT_PASSWORD=root | |
- TZ=America/Sao_Paulo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment