timemanager/docker-compose.yml
Sebastian Böckelmann 59e79a306f
All checks were successful
Java CI with Maven / build (push) Successful in 37s
Fix timezone offset in docker deployment
2023-11-17 17:56:17 +01:00

42 lines
943 B
YAML

version: '3.1'
services:
db:
image: mariadb:latest
container_name: timemanager-db
environment:
MYSQL_ROOT_PASSWORD: edkvcjReDxJ9Z8hq
ports:
- "3306:3306"
backend:
build:
context: ./backend
dockerfile: Dockerfile
links:
- "db:app_db"
environment:
SERVER_ADDRESS: 0.0.0.0
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: edkvcjReDxJ9Z8hq
SPRING_DATASOURCE_URL: jdbc:mariadb://app_db:3306/restservice?createDatabaseIfNotExist=true&autoReconnect=true
depends_on:
- "db"
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
restart: always
links:
- backend:backend
depends_on:
- "backend"
ports:
- "4200:80"
environment:
BACKEND_URL: http://backend:8080