NorbiPeti
c62925daf7
- Added local DB container - Added scripts to deploy frontend/backend by running the deploy command in the containers - Installing Docker and Heroku CLI in the dev backend container to be able to build and push the container without installing the CLI on the host - Building and pushing the production container to the Heroku Container Registry
29 lines
537 B
YAML
29 lines
537 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=${CLEARDB_DATABASE_URL}
|
|
database:
|
|
image: mysql:5.6
|
|
ports:
|
|
- "3306:3306"
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=DevelopmentPassword
|
|
|
|
networks:
|
|
default:
|
|
name: szakdolgozat
|
|
driver: bridge
|