Commit 2b58cc5a authored by Michael Iseard's avatar Michael Iseard
Browse files

Add filebrowser and sftp service and change folder structure

parent 5abd8606
......@@ -6,6 +6,9 @@ PHP_VERSION=7.4
WORDPRESS_DB_NAME=wordpress
WORDPRESS_TABLE_PREFIX=wp_
# sftp
SFTP_PASSWORD=changeme!
# adminer
ADMINER_PORT=8080
......
.env
logs/
wordpress-db/
wordpress/
proxy-db
proxy
logs/
data/
......@@ -32,6 +32,8 @@ services:
nginx:
image: nginx:latest
container_name: ${CONTAINER_PREFIX}-nginx
# ports:
# - 82:80
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/conf.d:/etc/nginx/conf.d/
......@@ -46,7 +48,7 @@ services:
image: mariadb:latest
container_name: ${CONTAINER_PREFIX}-wordpress-db
volumes:
- ./wordpress-db:/var/lib/mysql
- ./data/wordpress-db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${WDB_ROOT_PASSWORD:-password}
- MYSQL_USER=${WDB_USER:-root}
......@@ -58,7 +60,7 @@ services:
image: mariadb:latest
container_name: ${CONTAINER_PREFIX}-proxy-db
volumes:
- ./proxy-db:/var/lib/mysql
- ./data/proxy-db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${PDB_ROOT_PASSWORD}
- MYSQL_USER=${PDB_USER}
......@@ -96,8 +98,8 @@ services:
DB_MYSQL_PASSWORD: ${PDB_PASSWORD}
DB_MYSQL_NAME: ${PDB_DATABASE}
volumes:
- ./proxy:/data
- ./letsencrypt:/etc/letsencrypt
- ./data/proxy:/data
- ./data/letsencrypt:/etc/letsencrypt
depends_on:
- proxy-db
......@@ -111,7 +113,26 @@ services:
- 8000:8000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
- ./data/portainer:/data
volumes:
portainer_data:
## Uncomment below to enable filebrowser
# filebrowser:
# image: filebrowser/filebrowser
# ports:
# - 82:80
# volumes:
# - ./wordpress:/srv
# - ./data/filebrowser/filebrowser.db:/database.db
# - ./data/filebrowser/filebrowser.json:/.filebrowser.json
## Uncomment below to enable SFTP access on port 2222
# sftp:
# image: atmoz/sftp
# volumes:
# - ~/.ssh/id_ed25519:/etc/ssh/ssh_host_ed25519_key
# - ./wordpress:/home/wordpress/
# ports:
# - "2222:22"
# command: wordpress:${SFTP_PASSWORD}:33
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment