Skip to content

Commit

Permalink
merge with kimai docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
StefVdHaute committed Mar 31, 2024
1 parent 1da0be8 commit 169dad9
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,36 @@
services:
simple-kimai-kiosk:
container_name: my-nginx-container
sqldb:
image: mysql:5.7
volumes:
- mysql:/var/lib/mysql
environment:
- MYSQL_DATABASE=kimai
- MYSQL_USER=kimaiuser
- MYSQL_PASSWORD=kimaipassword
- MYSQL_ROOT_PASSWORD=changemeplease
command: --default-storage-engine innodb
restart: unless-stopped
healthcheck:
test: mysqladmin -p$$MYSQL_ROOT_PASSWORD ping -h localhost
interval: 20s
start_period: 10s
timeout: 10s
retries: 3

kimai:
image: kimai/kimai2:apache
volumes:
- data:/opt/kimai/var/data
ports:
- "8001:8001"
environment:
- [email protected]
- ADMINPASS=changemeplease
- "DATABASE_URL=mysql://kimaiuser:kimaipassword@sqldb/kimai?charset=utf8mb4&serverVersion=5.7.40"
- TRUSTED_HOSTS=nginx,localhost,127.0.0.1
restart: unless-stopped

kimai-kiosk-frontend:
build:
context: .
dockerfile: Dockerfile
Expand All @@ -11,3 +41,7 @@ services:
interval: 30s
timeout: 10s
retries: 3
volumes:
data:
mysql:

0 comments on commit 169dad9

Please sign in to comment.