1
0

add mediawiki, migrate containers

migrated containers: mariadb, nginx-proxy-manager, photoprism
This commit is contained in:
2023-03-28 13:08:51 +02:00
parent 47076cf45b
commit 272324f7d1
4 changed files with 98 additions and 1 deletions

View File

@ -634,12 +634,84 @@ services:
- CHOWN
- SETGID
- SETUID
profiles:
- base
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
mediawiki:
container_name: mediawiki
image: mediawiki
networks:
- public
depends_on:
- mariadb
ports:
- "${MEDIAWIKI_EXTERNAL_PORT}:${MEDIAWIKI_INTERNAL_PORT}"
volumes:
- "${DOCKER_STORAGE_PATH}/mediawiki/images:/var/www/html/images"
- "${DOCKER_STORAGE_PATH}/mediawiki/LocalSettings.php:/var/www/html/LocalSettings.php"
profiles:
- base
restart: unless-stopped
npm:
container_name: nginx-proxy-manager
image: docker.io/jc21/nginx-proxy-manager:2.9.22
network_mode: host
# doesn't need to be in the mariadb network because it uses host mode
depends_on:
- mariadb
volumes:
- "${DOCKER_STORAGE_PATH}/nginx-proxy-manager/data:/data"
- "${DOCKER_STORAGE_PATH}/nginx-proxy-manager/letsencrypt:/etc/letsencrypt"
environment:
- DB_MYSQL_HOST=localhost
- DB_MYSQL_NAME=npm
- DB_MYSQL_PASSWORD=npm
- "DB_MYSQL_PORT=${MARIADB_PORT}"
- DB_MYSQL_USER=npm
profiles:
- infra
restart: unless-stopped
photoprism1:
container_name: photoprism
image: docker.io/photoprism/photoprism
networks:
- mariadb
- public
ports:
- "${PHOTOPRISM_EXTERNAL_PORT}:${PHOTOPRISM_INTERNAL_PORT}"
depends_on:
- mariadb
env_file:
- photoprism.env
volumes:
- "${PHOTOS_STORAGE_PATH}/import:/photoprism/import"
- "${PHOTOS_STORAGE_PATH}/originals:/photoprism/originals"
- "${PHOTOS_STORAGE_PATH}/storage:/photoprism/storage"
profiles:
- base
restart: unless-stopped
mariadb:
container_name: mariadb
image: linuxserver/mariadb
networks:
- mysql
- public
volumes:
- "${DOCKER_STORAGE_PATH}/mariadb:/config"
restart: unless-stopped
profiles:
- infra
networks:
loki:
caddy:
@ -655,6 +727,8 @@ networks:
attachable: true
postgres:
external: true
mariadb:
attachable: true
volumes:
timetracker-static: