Szakdolgozat/docker-compose.yml
NorbiPeti e4ff4f5acf
Get page title from routes, including for menu items
- Fixed the user always being set to root instead of node because of the $USERNAME variable
2022-01-20 17:56:29 +01:00

33 lines
718 B
YAML

services:
frontend:
build: frontend
ports:
- "80:4200"
volumes:
- ./frontend:/home/node/app
environment:
- COMMAND=run
backend:
build: backend
ports:
- "8019:3000"
volumes:
- ./backend:/home/node/app
environment:
- COMMAND=run
- DATABASE_URL=mysql://szakdolgozat:DevelopmentPassword@database/szakdolgozat
user: ${SZD_USERNAME:-node}
database:
image: mysql:5.6
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=VerySecretPassword
- MYSQL_DATABASE=szakdolgozat
- MYSQL_USER=szakdolgozat
- MYSQL_PASSWORD=DevelopmentPassword
networks:
default:
name: szakdolgozat
driver: bridge