Actualiser docker-compose.yml
Some checks failed
Deployment Verification / deploy-and-test (push) Has been cancelled
Some checks failed
Deployment Verification / deploy-and-test (push) Has been cancelled
This commit is contained in:
parent
3e5f130055
commit
c8e37eb0f4
@ -2,41 +2,131 @@
|
|||||||
networks:
|
networks:
|
||||||
traefik_front_network:
|
traefik_front_network:
|
||||||
external: true
|
external: true
|
||||||
back_network_:
|
back_network_vbulletin:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
attachable: true
|
attachable: true
|
||||||
|
|
||||||
#### SERVICES
|
#### SERVICES
|
||||||
services:
|
services:
|
||||||
### hello_world
|
# NGINX
|
||||||
hello_world:
|
nginx:
|
||||||
container_name: gitea-app
|
container_name: nginx-vbulletin
|
||||||
hostname: gitea-app
|
hostname: nginx-vbulletin
|
||||||
image: hello-world
|
image: nginx:1-alpine
|
||||||
environment:
|
|
||||||
restart: always
|
|
||||||
networks:
|
|
||||||
# - back_network_gitea
|
|
||||||
- traefik_front_network
|
|
||||||
volumes:
|
volumes:
|
||||||
|
- ./www:/var/www/html
|
||||||
|
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:rw
|
||||||
|
- ./nginx/conf.d/:/etc/nginx/conf.d:rw
|
||||||
|
- ./logs:/var/log/nginx:rw
|
||||||
|
networks:
|
||||||
|
- traefik_front_network
|
||||||
|
- back_network_vbulletin
|
||||||
|
restart: always
|
||||||
|
links:
|
||||||
|
- php83
|
||||||
|
- mysql
|
||||||
|
depends_on:
|
||||||
|
- mysql
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.docker.network=traefik_front_network"
|
- "traefik.docker.network=traefik_front_network"
|
||||||
# HTTP
|
# HTTP
|
||||||
- "traefik.http.routers.hello-world-http.rule=Host(`hello-world.tips-of-mine.com`)"
|
- "traefik.http.routers.vbulletin-http.rule=Host(`vbulletin.tips-of-mine.com`)"
|
||||||
- "traefik.http.routers.hello-world-http.entrypoints=http"
|
- "traefik.http.routers.vbulletin-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.vbulletin-https.rule=Host(`vbulletin.tips-of-mine.com`)"
|
||||||
- "traefik.http.routers.hello-world-https.entrypoints=https"
|
- "traefik.http.routers.vbulletin-https.entrypoints=https"
|
||||||
- "traefik.http.routers.hello-world-https.tls=true"
|
- "traefik.http.routers.vbulletin-https.service=vbulletin-service"
|
||||||
- "traefik.http.routers.hello-world-https.priority=50"
|
- "traefik.http.routers.vbulletin-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.vbulletin-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"
|
# PHP
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.method=foobar"
|
php83:
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.timeout=10"
|
container_name: php83-vbulletin
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.interval=30"
|
hostname: php83-vbulletin
|
||||||
|
# image: php:8.3-fpm
|
||||||
|
volumes:
|
||||||
|
- ./www:/var/www/html:rw
|
||||||
|
- ./logs:/var/log/php-fpm:rw
|
||||||
|
networks:
|
||||||
|
- back_network_vbulletin
|
||||||
|
build:
|
||||||
|
context: './php/'
|
||||||
|
args:
|
||||||
|
PHP_VERSION: 8.3
|
||||||
|
|
||||||
|
### mysql
|
||||||
|
mysql:
|
||||||
|
container_name: mysql-vbulletin
|
||||||
|
hostname: mysql-vbulletin
|
||||||
|
image: mysql:8.0
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- ./data:/var/lib/mysql
|
||||||
|
networks:
|
||||||
|
- back_network_vbulletin
|
||||||
|
environment:
|
||||||
|
MYSQL_ROOT_PASSWORD: root_password
|
||||||
|
MYSQL_DATABASE: vbulletin
|
||||||
|
MYSQL_USER: your_user
|
||||||
|
MYSQL_PASSWORD: your_password
|
||||||
|
|
||||||
|
### phpMyAdmin service
|
||||||
|
phpmyadmin:
|
||||||
|
container_name: phpmyadmin-vbulletin
|
||||||
|
hostname: phpmyadmin-vbulletin
|
||||||
|
image: phpmyadmin/phpmyadmin:latest
|
||||||
|
networks:
|
||||||
|
- traefik_front_network
|
||||||
|
- back_network_vbulletin
|
||||||
|
environment:
|
||||||
|
PMA_HOST: mysql
|
||||||
|
PMA_ARBITRARY: 1
|
||||||
|
MYSQL_ROOT_PASSWORD: root_password
|
||||||
|
UPLOAD_LIMIT: 50M
|
||||||
|
depends_on:
|
||||||
|
- mysql
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.docker.network=interne"
|
||||||
|
# HTTP
|
||||||
|
- "traefik.http.routers.phpmyadmin-http.rule=Host(`phpmyadmin.tips-of-mine.com`)"
|
||||||
|
- "traefik.http.routers.phpmyadmin-http.entrypoints=http"
|
||||||
|
# HTTPS
|
||||||
|
- "traefik.http.routers.phpmyadmin-https.rule=Host(`phpmyadmin.tips-of-mine.com`)"
|
||||||
|
- "traefik.http.routers.phpmyadmin-https.entrypoints=https"
|
||||||
|
- "traefik.http.routers.phpmyadmin-https.service=phpmyadmin-service"
|
||||||
|
- "traefik.http.routers.phpmyadmin-https.tls=true"
|
||||||
|
# Middleware
|
||||||
|
# Service
|
||||||
|
- "traefik.http.services.phpmyadmin-service.loadbalancer.server.port=80"
|
||||||
|
|
||||||
|
### msmtpd
|
||||||
|
msmtpd:
|
||||||
|
container_name: msmtpd-vbulletin
|
||||||
|
hostname: msmtpd-vbulletin
|
||||||
|
image: crazymax/msmtpd:latest
|
||||||
|
networks:
|
||||||
|
- back_network_vbulletin
|
||||||
|
environment:
|
||||||
|
- "TZ=Europe/Paris"
|
||||||
|
- "PUID=1500"
|
||||||
|
- "PGID=1500"
|
||||||
|
- "SMTP_HOST=10.0.4.52"
|
||||||
|
- "SMTP_PORT=587"
|
||||||
|
- "SMTP_TLS=on"
|
||||||
|
- "SMTP_STARTTLS=on"
|
||||||
|
- "SMTP_TLS_CHECKCERT=off"
|
||||||
|
- "SMTP_AUTH=on"
|
||||||
|
- "SMTP_USER=hostinfo@tips-of-mine.fr"
|
||||||
|
- "SMTP_PASSWORD=P@ssw0rd!12345"
|
||||||
|
- "SMTP_DOMAIN=localhost"
|
||||||
|
- "SMTP_FROM=hostinfo@tips-of-mine.fr"
|
||||||
|
restart: always
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "echo EHLO localhost"]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
Loading…
x
Reference in New Issue
Block a user