nodejs-authentication/docker-compose.yml
2025-03-11 10:51:27 +00:00

27 lines
723 B
YAML

version: "3"
services:
web-simple-authenticator:
depends_on:
- db-simple-authenticator
container_name: node-simple-authenticator-master
build: .
volumes:
- ./:/code/app/
- /code/app/node_modules
ports:
- "1010:1010"
links:
- db-simple-authenticator
environment:
PORT: 1010 # this is optional, allows express to use process.env.PORT instead of a raw 3000
db-simple-authenticator:
container_name: db-simple-authenticator
image: "mysql:8.3"
volumes:
- ./support/nodejs-simple-authentication.sql:/docker-entrypoint-initdb.d/dump.sql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: app
ports:
- "3306:3306"