forked from cbirkenbeul/docker-homelab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
51 lines (48 loc) · 1.71 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
version: '3'
services:
phpipam-db:
image: mariadb/mariadb:10.4
container_name: phpipam-mysql
restart: unless-stopped
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- /var/docker/data/phpipam/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE
- MYSQL_USER=${MYSQL_USER}
- MYSQL_INITDB_SKIP_TZINFO=1 # Behebt die bekannten Startprobleme der Datenbank
phpipam-phpipam:
image: pierrecdn/phpipam:latest
container_name: phpipam-phpipam
restart: unless-stopped
environment:
- MYSQL_ENV_MYSQL_USER=root
- MYSQL_ENV_MYSQL_ROOT_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_ENV_MYSQL_HOST=phpipam-mysql
depends_on:
- phpipam-mysql
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.phpipam-https.redirectscheme.scheme=https"
- "traefik.http.routers.phpipam-http.entrypoints=web"
- "traefik.http.routers.phpipam-http.rule=Host(`${PHPIPAM_URL}`)" #Domain anpassen
- "traefik.http.routers.phpipam-http.middlewares=phpipam-https@docker"
- "traefik.http.routers.phpipam.entrypoints=web-secure"
- "traefik.http.routers.phpipam.rule=Host(`${PHPIPAM_URL}`)" #Domain anpassen
- "traefik.http.routers.phpipam.tls=true"
- "traefik.http.routers.phpipam.tls.certresolver=default"
- "traefik.http.routers.phpipam.middlewares=secHeaders@file"
- "traefik.http.services.phpipam.loadbalancer.server.port=80"
networks:
- traefik_proxy
- default
networks:
traefik_proxy:
external:
name: traefik_proxy
default:
driver: bridge