Bonjour à tous,
Alors voici le soucis :
Je débute sous docker et j'aimerai me faire un docker-compose afin de pouvoir monter en one-shot :
- nginx (avec php-fpm)
- rutorrent
- sickrage
- emby
Du coup, j'ai trouvé l'article sur le site de @Wonderfall (
https://wonderfall.xyz/seedbox-avec-docker/) que j'ai essayé de coupler au tuto de @Xataz (
https://mondedie.fr/d/7164/11), mais non, après une après-midi à prendre la tête à @xataz, et masse de post sur stackoverflow, je bug et je tourne en rond...
Voici les fichiers :
Docker-compose.yml:
nginx:
image: wonderfall/nginx
container_name: nginx
environment:
- UID=901
- GID=901
ports:
- "80:8000"
- "443:4430"
links:
- rutorrent:rutorrent
- emby:emby
- sickrage:sickrage
- php:php
volumes:
- /docker/data/nginx/sites-enabled:/sites-enabled
- /docker/data/nginx/conf.d:/conf.d
- /docker/data/nginx/passwds:/passwds
- /docker/data/nginx/log:/var/log/nginx
- /docker/data/nginx/certs:/certs
- /docker/data/nginx/www:/www
- /docker/data/nginx/conf.d/sites.conf:/conf.d/default.conf
php:
image: php:fpm
container_name: php
environment:
- UID=901
- GID=901
ports:
- "9000:9000"
volumes:
- /docker/data/nginx/www:/www
rutorrent:
image: wonderfall/rutorrent
container_name: rutorrent
environment:
- WEBROOT=/rutorrent
- UID=901
- GID=901
ports:
- "49184:49184"
- "49184:49184/udp"
volumes:
- /data:/data
- /docker/data/rutorrent:/var/www/torrent/share/users
emby:
image: emby/embyserver
container_name: emby
environment:
- APP_UID=901
- APP_GID=901
- WEBROOT=/emby
volumes:
- /data:/data
- /docker/data/emby:/config
sickrage:
image: xataz/sickrage
container_name: sickrage
environment:
- APP_UID=901
- APP_GID=901
- WEBROOT=/sickrage
volumes:
- /docker/data/sickrage:/config
/docker/data/nginx/conf.d/sites.conf :
server {
listen 8000;
root /www;
location / {
try_files $uri /index.php$is_args$args;
}
location ~ ^/.+\.php(/|$) {
fastcgi_pass fpm:9000;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
/docker/data/nginx/sites-enabled/racine.conf :
server {
listen 8000;
server_name domain.fr;
return 301 https://$host$request_uri;
}
server {
listen 4430 ssl http2;
server_name domain.fr;
ssl_certificate /certs/fullchain.pem;
ssl_certificate_key /certs/privkey.pem;
include /conf.d/ssl_params.conf;
include /conf.d/error_pages.conf;
location / {
root /www/base;
}
location /rutorrent {
proxy_pass http://rutorrent;
include /conf.d/proxy-params.conf;
}
location /emby {
proxy_pass http://emby:8096;
include /conf.d/proxy-params.conf;
}
location /sickrage {
proxy_pass http://sickrage:8081;
include /conf.d/proxy-params.conf;
}
}
Pour le moment, lorsque je vais sur une page php, le fichier index.php se télécharge... bref ça marche pas...
Si quelqu'un peut devenir mon super sauveur, je prends !
Merci !