Skip to content
Snippets Groups Projects
Commit 0db7e118 authored by ʇǝɯS ǝp ɹǝıɥʇnɐפ's avatar ʇǝɯS ǝp ɹǝıɥʇnɐפ
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
/data
/letsencrypt
/seafile-data
/seafile-mysql
#
# Dans le repertoire racine ou tu mets ton docker-compose crée deux dossier :
# - seafile-data
# - seafile-mysql
#
services:
db:
image: mariadb:10.11
container_name: seafile-mysql
environment:
- MYSQL_ROOT_PASSWORD=pretil # Requested, set the root's password of MySQL service.
- MYSQL_LOG_CONSOLE=true
volumes:
- ./seafile-mysql/db:/var/lib/mysql # Requested, specifies the path to MySQL data persistent store.
networks:
seafile:
ipv4_address: 192.168.12.5
memcached:
image: memcached:1.6.18
container_name: seafile-memcached
entrypoint: memcached -m 256
networks:
seafile:
ipv4_address: 192.168.12.2
traefik:
image: traefik:latest
container_name: "traefik"
command:
#- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=true"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
networks:
seafile:
ipv4_address: 192.168.12.6
#- traefik-proxy
seafile:
image: seafileltd/seafile-mc:latest
container_name: seafile
ports:
- "8081:80"
#- "8443:443" # If https is enabled, cancel the comment.
volumes:
- ./seafile-data:/shared # Requested, specifies the path to Seafile data persistent store.
networks:
seafile:
ipv4_address: 192.168.12.4
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=pretil # Requested, the value should be root's password of MySQL service.
- TIME_ZONE=Europe/Paris # Optional, default is UTC. Should be uncomment and set to your local time zone.
- SEAFILE_ADMIN_EMAIL=admin@example.com # Specifies Seafile admin user, default is 'me@example.com'.
- SEAFILE_ADMIN_PASSWORD=pretil # Specifies Seafile admin password, default is 'asecret'.
- SEAFILE_SERVER_LETSENCRYPT=false # Whether to use https or not.
- SEAFILE_SERVER_HOSTNAME=cloud.localhost # Specifies your host name if https is enabled.
labels:
- traefik.enable=true
#- traefik.http.services.seafile.loadbalancer.server.port=80
- traefik.http.routers.seafile.rule=Host(`cloud.localhost`)
#- traefik.http.routers.seafile.tls.certresolver=le
#- traefik.http.routers.seafile.entrypoints=websecure
- traefik.http.routers.seafile.entrypoints=web # a commenter quand tu passes en https (décommenter celle du dessus)
depends_on:
- db
- memcached
nginx-reverse-proxy-manager:
image: 'jc21/nginx-proxy-manager:latest'
container_name: "nginx-reverse"
restart: unless-stopped
ports:
- '8084:80'
- '81:81'
- '8444:443'
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
networks:
seafile:
ipv4_address: 192.168.12.3
labels:
- traefik.enable=true
- traefik.http.routers.nginxreverse.rule=Host(`nginx-manager.localhost`)
- traefik.http.routers.nginxreverse.entrypoints=web
web:
image: nginx:latest
container_name: "nginx"
ports:
- "8088:80"
volumes:
#- ./var/www/html:/usr/share/nginx/html
- ./nginx-config/default.conf:/etc/nginx/conf.d/default.conf
- ./var/www/html:/var/www/html
links:
- php
labels:
- traefik.enable=true
- traefik.http.routers.nginx.rule=Host(`localhost`)
- traefik.http.routers.nginx.entrypoints=web
networks:
seafile:
ipv4_address: 192.168.12.7
php:
image: php:7-fpm
container_name: "php"
volumes:
- ./var/www/html:/var/www/html
networks:
seafile:
ipv4_address: 192.168.12.8
networks:
seafile:
ipam:
config:
- subnet: 192.168.12.0/24
#traefik-proxy:
## Le nginx-proxy-manager par defaut:
## admin@example.com
## changeme
\ No newline at end of file
server {
index index.php index.html;
server_name php-docker.local;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
root /var/www/html;
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass php:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}
\ No newline at end of file
File added
File added
<?php
echo phpinfo();
?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment