Created
July 27, 2020 22:25
-
-
Save fabiomontefuscolo/504bd00c7be34d225d82ef50db6c4f7a to your computer and use it in GitHub Desktop.
nginx and tiki and docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.7" | |
services: | |
nginx: | |
image: jwilder/nginx-proxy | |
restart: unless-stopped | |
volumes: | |
- ./dhparam:/etc/nginx/dhparam | |
- ./conf.d:/etc/nginx/conf.d | |
- ./certs:/etc/nginx/certs | |
- ./vhost.d:/etc/nginx/vhost.d | |
- /var/www/html:/usr/share/nginx/html | |
- /var/run/docker.sock:/tmp/docker.sock:ro | |
labels: | |
- com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true | |
ports: | |
- 80:80 | |
- 443:443 | |
letsencrypt: | |
image: jrcs/letsencrypt-nginx-proxy-companion | |
restart: unless-stopped | |
environment: | |
- [email protected] | |
volumes: | |
- ./certs:/etc/nginx/certs | |
- ./vhost.d:/etc/nginx/vhost.d | |
- /var/www/html:/usr/share/nginx/html | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
r |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
tiki: | |
image: tikiwiki/tikiwiki:21.x | |
restart: unless-stopped | |
depends_on: | |
- db | |
environment: | |
- TIKI_DB_USER=${TIKI_DB_USER} | |
- TIKI_DB_PASS=${TIKI_DB_PASS} | |
- TIKI_DB_NAME=${TIKI_DB_NAME} | |
- TIKI_DB_HOST=${TIKI_DB_HOST} | |
- VIRTUAL_HOST=${VIRTUAL_HOST} | |
- LETSENCRYPT_HOST=${VIRTUAL_HOST} | |
volumes: | |
- ./conf.d:/var/www/conf.d | |
- ./data:/var/www/data | |
- ./data/sessions:/var/www/sessions | |
- ./html/files:/var/www/html/files | |
- ./html/img/trackers:/var/www/html/img/trackers | |
- ./html/img/wiki_up:/var/www/html/img/wiki_up | |
- ./html/img/wiki:/var/www/html/img/wiki | |
- ./html/modules/cache:/var/www/html/modules/cache | |
- ./html/storage:/var/www/html/storage | |
- ./html/temp:/var/www/html/temp | |
networks: | |
- app | |
- nginx_default | |
db: | |
image: mariadb | |
restart: unless-stopped | |
environment: | |
- MYSQL_USER=${TIKI_DB_USER} | |
- MYSQL_PASSWORD=${TIKI_DB_PASS} | |
- MYSQL_DATABASE=${TIKI_DB_NAME} | |
- MYSQL_ROOT_PASSWORD=${TIKI_DB_PASS} | |
- TERM=dumb | |
volumes: | |
- ./mysql:/var/lib/mysql | |
networks: | |
- app | |
networks: | |
app: | |
nginx_default: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment