Created
February 15, 2024 01:32
-
-
Save devalexandre/4d32a113fdd8faa45844bcaf8d096618 to your computer and use it in GitHub Desktop.
This file contains 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.8' | |
services: | |
app: | |
build: . | |
environment: | |
- DBUSER=mysqluser | |
- DBPASS=Mysql2023! | |
- DBHOST=mysql | |
- DBPORT=3306 | |
- DBNAME=mydatabase | |
ports: | |
- "3000:3000" | |
depends_on: | |
- mysql | |
mysql: | |
image: mysql:5.7 | |
volumes: | |
- ./mysql-init:/docker-entrypoint-initdb.d | |
environment: | |
MYSQL_ROOT_PASSWORD: "Mysql2023!" | |
MYSQL_DATABASE: "mydatabase" | |
MYSQL_USER: "mysqluser" | |
MYSQL_PASSWORD: "Mysql2023!" | |
ports: | |
- "3306:3306" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment