Created
March 23, 2022 13:16
-
-
Save lucatsf/297ad0e127aa560a8c70067d2c7e4996 to your computer and use it in GitHub Desktop.
docker-compose.yml
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