first sync
Some checks failed
Deployment Verification / deploy-and-test (push) Failing after 1m0s

This commit is contained in:
Hubert Cornet 2025-01-24 17:59:27 +01:00
parent 65de6bacef
commit 93f09b213b

View File

@ -1,42 +1,82 @@
#### NETWORKS #### NETWORKS
networks: networks:
traefik_front_network: docker-traefik_front_network:
external: true external: true
back_network_: back_network_phpipam:
driver: bridge driver: bridge
attachable: true attachable: true
#### SERVICES #### SERVICES
services: services:
### hello_world ### phpipam-web
hello_world: phpipam-web:
container_name: gitea-app container_name: phpipam-app
hostname: gitea-app hostname: phpipam-app
image: hello-world image: phpipam/phpipam-www:latest
environment:
restart: always
networks: networks:
# - back_network_gitea - docker-traefik_front_network
- traefik_front_network - back_network_phpipam
environment:
- TZ=Europe/Paris
- IPAM_DISABLE_INSTALLER=true
- IPAM_DATABASE_HOST=phpipam-db
- IPAM_DATABASE_USER=phpipam
- IPAM_DATABASE_NAME=phpipam
- IPAM_DATABASE_PASS=my_secret_phpipam_pass
- IPAM_DATABASE_WEBHOST=maria-db
- IPAM_TRUST_X_FORWARDED=true
restart: unless-stopped
volumes: volumes:
- ./phpipam-logo:/phpipam/css/images/logo
- ./phpipam-ca:/usr/local/share/ca-certificates:ro
depends_on:
- phpipam-db
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.docker.network=traefik_front_network" - "traefik.docker.network=docker-traefik_front_network"
# HTTP # HTTP
- "traefik.http.routers.hello-world-http.rule=Host(`hello-world.tips-of-mine.com`)" - "traefik.http.routers.ipam-http.rule=Host(`ipam.tips-of-mine.com`)"
- "traefik.http.routers.hello-world-http.entrypoints=http" - "traefik.http.routers.ipam-http.entrypoints=http"
- "traefik.http.routers.hello-world-http.priority=49"
# HTTPS # HTTPS
- "traefik.http.routers.hello-world-https.rule=Host(`hello-world.tips-of-mine.com`)" - "traefik.http.routers.ipam-https.rule=Host(`ipam.tips-of-mine.com`)"
- "traefik.http.routers.hello-world-https.entrypoints=https" - "traefik.http.routers.ipam-https.entrypoints=https"
- "traefik.http.routers.hello-world-https.tls=true" - "traefik.http.routers.ipam-https.service=ipam-service"
- "traefik.http.routers.hello-world-https.priority=50" - "traefik.http.routers.ipam-https.tls=true"
- "traefik.http.routers.gitea.service=gitea-https-service"
# Middleware # Middleware
# Service # Service
# - "traefik.http.services.gitea-https-service.loadbalancer.server.port=3000" - "traefik.http.services.ipam-service.loadbalancer.server.port=80"
# - "traefik.http.services.gitea-https-service.loadbalancer.server.scheme=https"
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.hostname=gitea.traefik.me" ### phpipam-cron
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.method=foobar" phpipam-cron:
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.timeout=10" container_name: phpipam-cron
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.interval=30" hostname: phpipam-cron
image: phpipam/phpipam-cron:latest
networks:
- back_network_phpipam
environment:
- TZ=Europe/Paris
- IPAM_DATABASE_HOST=phpipam-db
- IPAM_DATABASE_USER=phpipam
- IPAM_DATABASE_PASS=my_secret_phpipam_pass
- SCAN_INTERVAL=1h
restart: unless-stopped
volumes:
- ./phpipam-ca:/usr/local/share/ca-certificates:ro
depends_on:
- phpipam-db
### phpipam-db
phpipam-db:
container_name: phpipam-db
hostname: phpipam-db
image: mariadb:latest
networks:
- back_network_phpipam
environment:
- MYSQL_USER=phpipam
- MYSQL_PASSWORD=my_secret_phpipam_pass
- MYSQL_DATABASE=phpipam
- MYSQL_ROOT_PASSWORD=my_secret_mysql_root_pass
restart: unless-stopped
volumes:
- ./phpipam-db-data:/var/lib/mysql