Skip to content

Instantly share code, notes, and snippets.

@danywalls
Created March 4, 2023 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danywalls/b1c0969e5adc4b980258036e7caa2e5e to your computer and use it in GitHub Desktop.
Save danywalls/b1c0969e5adc4b980258036e7caa2e5e to your computer and use it in GitHub Desktop.
version: "3"
services:
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: example
MYSQL_DATABASE: example
nest-api:
hostname: nest-api
container_name: nest-api
build: .
volumes:
- .:/app
- /app/node_modules
ports:
- '3000:3000'
expose:
- '3000'
command: npm run start
depends_on:
- db
links:
- db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment