Files
borrow-system/docker-compose.yml
2025-11-30 21:17:36 +01:00

63 lines
1.3 KiB
YAML

services:
usr-frontend_v2:
container_name: borrow_system-usr-frontend
networks:
- proxynet
- borrow_system-internal
build: ./FrontendV2
ports:
- "8101:80"
restart: unless-stopped
admin-frontend:
container_name: borrow_system-admin-frontend
networks:
- proxynet
- borrow_system-internal
build: ./admin
ports:
- "8103:80"
restart: unless-stopped
backend_v2:
container_name: borrow_system-backend_v2
networks:
- proxynet
- borrow_system-internal
build: ./backendV2
ports:
- "8102:8102"
environment:
NODE_ENV: production
DB_HOST: mysql_v2
DB_USER: root
DB_PASSWORD: ${DB_PASSWORD_V2}
DB_NAME: borrow_system_new
depends_on:
- mysql_v2
restart: unless-stopped
mysql_v2:
container_name: borrow_system-mysql-v2
networks:
- borrow_system-internal
image: mysql:8.0
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD_V2}
MYSQL_DATABASE: borrow_system_new
TZ: Europe/Berlin
volumes:
- mysql-v2-data:/var/lib/mysql
- ./mysql-timezone.cnf:/etc/mysql/conf.d/timezone.cnf:ro
volumes:
mysql-data:
mysql-v2-data:
networks:
proxynet:
external: true
borrow_system-internal:
external: true