Created
July 8, 2023 05:02
-
-
Save ajeetraina/b4023929b3ec418320493853eeca7edf 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
services: | |
app: | |
image: node:18-alpine | |
command: sh -c "yarn install && yarn run dev" | |
ports: | |
- 3000:3000 | |
working_dir: /app | |
volumes: | |
- ./:/app | |
environment: | |
MYSQL_HOST: mysql | |
MYSQL_USER: root | |
MYSQL_PASSWORD: secret | |
MYSQL_DB: todos | |
mysql: | |
image: mysql:8.0 | |
volumes: | |
- todo-mysql-data:/var/lib/mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: secret | |
MYSQL_DATABASE: todos | |
volumes: | |
todo-mysql-data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment