Files
bikelane/docker-compose.yml
theis.gaedigk c35838b034 added Login function.
Also added user table but insecure. (In the next time, going to secure the get all users.)

Also noted out the react frontend from the docker compose file - just for development purposes.

I have also created some utils to logout the user and to get all users.
2025-07-22 16:47:44 +02:00

44 lines
932 B
YAML

services:
# react-frontend:
# container_name: bikelane-frontend_react
# build: ./client
# ports:
# - "5001:5001"
# environment:
# - CHOKIDAR_USEPOLLING=true
# volumes:
# - ./client:/app
# - /app/node_modules
# restart: unless-stopped
bikelane-backend:
container_name: bikelane-backend_express
build: ./backend
ports:
- "5002:5002"
environment:
DB_HOST: mysql
DB_USER: root
DB_PASSWORD: D7Ze0lwV9hMrNQHdz1Q8yi0MIQuOO8
DB_NAME: bikelane
depends_on:
- mysql
volumes:
- ./backend:/bikelane-backend
restart: unless-stopped
mysql:
container_name: bikelane-mysql
image: mysql:8.0
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: D7Ze0lwV9hMrNQHdz1Q8yi0MIQuOO8
MYSQL_DATABASE: bikelane
volumes:
- mysql-data:/var/lib/mysql
ports:
- "3307:3306"
volumes:
mysql-data: