2023-09-25 11:01:28 +02:00
|
|
|
version: '3.1'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: mariadb:latest
|
2023-11-12 16:43:39 +01:00
|
|
|
container_name: timemanager-db
|
2023-09-25 11:01:28 +02:00
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: edkvcjReDxJ9Z8hq
|
2023-11-17 17:56:17 +01:00
|
|
|
ports:
|
|
|
|
- "3306:3306"
|
2023-09-25 11:01:28 +02:00
|
|
|
backend:
|
2023-11-19 09:29:19 +01:00
|
|
|
#build:
|
|
|
|
#context: ./backend
|
|
|
|
#dockerfile: Dockerfile
|
|
|
|
image: git.fawkes100.de/sebastian/timemanager/timemanager-backend:latest
|
2023-09-25 11:01:28 +02:00
|
|
|
links:
|
|
|
|
- "db:app_db"
|
|
|
|
environment:
|
2023-11-12 16:43:39 +01:00
|
|
|
SERVER_ADDRESS: 0.0.0.0
|
2023-09-25 11:01:28 +02:00
|
|
|
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
|
2023-11-17 17:56:17 +01:00
|
|
|
volumes:
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
2023-09-25 11:01:28 +02:00
|
|
|
frontend:
|
2023-11-19 09:29:19 +01:00
|
|
|
#build:
|
|
|
|
#context: ./frontend
|
|
|
|
#dockerfile: Dockerfile
|
|
|
|
image: git.fawkes100.de/sebastian/timemanager/timemanager-frontend:latest
|
2023-09-25 11:01:28 +02:00
|
|
|
restart: always
|
|
|
|
links:
|
|
|
|
- backend:backend
|
2023-11-12 16:43:39 +01:00
|
|
|
depends_on:
|
|
|
|
- "backend"
|
2023-09-25 11:01:28 +02:00
|
|
|
ports:
|
|
|
|
- "4200:80"
|
|
|
|
environment:
|
2023-11-13 10:46:45 +01:00
|
|
|
BACKEND_URL: http://backend:8080
|