mirror of
https://github.com/demostf/setup
synced 2026-06-04 00:54:07 +02:00
remove piwik
This commit is contained in:
parent
b33a31da7d
commit
26b139a4ed
2 changed files with 0 additions and 64 deletions
|
|
@ -11,20 +11,15 @@ services:
|
||||||
- "./api.tmpl:/etc/nginx/conf.d/api.tmpl"
|
- "./api.tmpl:/etc/nginx/conf.d/api.tmpl"
|
||||||
- "./static.tmpl:/etc/nginx/conf.d/static.tmpl"
|
- "./static.tmpl:/etc/nginx/conf.d/static.tmpl"
|
||||||
- "./sync.tmpl:/etc/nginx/conf.d/sync.tmpl"
|
- "./sync.tmpl:/etc/nginx/conf.d/sync.tmpl"
|
||||||
- "./piwik.tmpl:/etc/nginx/conf.d/piwik.tmpl"
|
|
||||||
- "${DEMO_ROOT}:/demos"
|
- "${DEMO_ROOT}:/demos"
|
||||||
volumes_from:
|
|
||||||
- piwik
|
|
||||||
environment:
|
environment:
|
||||||
- HOST=${HOST}
|
- HOST=${HOST}
|
||||||
- UPLOAD_FASTCGI=api:9000
|
- UPLOAD_FASTCGI=api:9000
|
||||||
- UPLOAD_SCRIPT=/app/src/public/upload.php
|
- UPLOAD_SCRIPT=/app/src/public/upload.php
|
||||||
networks:
|
networks:
|
||||||
- proxy-tier
|
- proxy-tier
|
||||||
- piwik-tier
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- api
|
- api
|
||||||
- piwik
|
|
||||||
api:
|
api:
|
||||||
image: demostf/api
|
image: demostf/api
|
||||||
container_name: api
|
container_name: api
|
||||||
|
|
@ -73,47 +68,10 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- db-tier
|
- db-tier
|
||||||
|
|
||||||
piwik-db:
|
|
||||||
image: mysql
|
|
||||||
container_name: piwik-db
|
|
||||||
volumes:
|
|
||||||
- ./piwik_db_data:/var/lib/mysql
|
|
||||||
environment:
|
|
||||||
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
|
|
||||||
networks:
|
|
||||||
- piwik-db-tier
|
|
||||||
|
|
||||||
piwik:
|
|
||||||
image: piwik:fpm
|
|
||||||
container_name: piwik
|
|
||||||
links:
|
|
||||||
- db
|
|
||||||
volumes:
|
|
||||||
- ./piwik_config:/var/www/html/config
|
|
||||||
networks:
|
|
||||||
- piwik-db-tier
|
|
||||||
- piwik-tier
|
|
||||||
cron:
|
|
||||||
image: piwik:fpm
|
|
||||||
links:
|
|
||||||
- db
|
|
||||||
volumes_from:
|
|
||||||
- piwik
|
|
||||||
entrypoint: |
|
|
||||||
bash -c 'bash -s <<EOF
|
|
||||||
trap "break;exit" SIGHUP SIGINT SIGTERM
|
|
||||||
while /bin/true; do
|
|
||||||
su -s "/bin/bash" -c "/usr/local/bin/php /var/www/html/console core:archive" www-data
|
|
||||||
sleep 150
|
|
||||||
done
|
|
||||||
EOF'
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy-tier:
|
proxy-tier:
|
||||||
db-tier:
|
db-tier:
|
||||||
parser-tier:
|
parser-tier:
|
||||||
piwik-tier:
|
|
||||||
piwik-db-tier:
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
certs:
|
certs:
|
||||||
|
|
|
||||||
22
piwik.tmpl
22
piwik.tmpl
|
|
@ -1,22 +0,0 @@
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
server_name piwik.${HOST};
|
|
||||||
|
|
||||||
add_header 'Access-Control-Allow-Origin' '*';
|
|
||||||
|
|
||||||
# root /usr/share/nginx/html;
|
|
||||||
root /var/www/html/;
|
|
||||||
index index.php index.html index.htm;
|
|
||||||
|
|
||||||
location ~ \.php$ {
|
|
||||||
fastcgi_pass piwik:9000;
|
|
||||||
fastcgi_param SCRIPT_FILENAME ${DOLLAR}document_root${DOLLAR}fastcgi_script_name;
|
|
||||||
fastcgi_param SCRIPT_NAME ${DOLLAR}fastcgi_script_name;
|
|
||||||
include fastcgi_params;
|
|
||||||
}
|
|
||||||
|
|
||||||
location = /favicon.ico {
|
|
||||||
log_not_found off;
|
|
||||||
access_log off;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue