add missing theme volume; add healthcheck
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
3349acca0f
commit
8ebe3dbb20
@ -29,9 +29,11 @@ ADD overlay/ /
|
|||||||
|
|
||||||
VOLUME /var/www/app/plugins.local
|
VOLUME /var/www/app/plugins.local
|
||||||
VOLUME /var/www/app/feed-icons
|
VOLUME /var/www/app/feed-icons
|
||||||
|
VOLUME /var/www/app/themes.local
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||||
|
HEALTHCHECK --interval 30s --timeout 10s --retries 5 CMD wget --quiet --tries=1 --spider http://localhost
|
||||||
WORKDIR /var/www/app
|
WORKDIR /var/www/app
|
||||||
CMD []
|
CMD []
|
||||||
|
@ -26,7 +26,7 @@ Compatible with docker-compose v2 schemas.
|
|||||||
|
|
||||||
```Yaml
|
```Yaml
|
||||||
---
|
---
|
||||||
version: '2'
|
version: '2.1'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
ttrss:
|
ttrss:
|
||||||
@ -38,6 +38,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- plugins:/var/www/app/plugins.local
|
- plugins:/var/www/app/plugins.local
|
||||||
- icons:/var/www/app/feed-icons
|
- icons:/var/www/app/feed-icons
|
||||||
|
- themes:/var/www/app/themes.local
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: postgres
|
image: postgres
|
||||||
@ -55,6 +56,8 @@ volumes:
|
|||||||
driver: local
|
driver: local
|
||||||
icons:
|
icons:
|
||||||
driver: local
|
driver: local
|
||||||
|
themes:
|
||||||
|
driver: local
|
||||||
```
|
```
|
||||||
|
|
||||||
## Environment variables
|
## Environment variables
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
version: '2'
|
version: '2.1'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
ttrss:
|
ttrss:
|
||||||
@ -6,8 +6,12 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
volumes:
|
||||||
|
- plugins:/var/www/app/plugins.local
|
||||||
|
- icons:/var/www/app/feed-icons
|
||||||
|
- themes:/var/www/app/themes.local
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: postgres
|
image: postgres
|
||||||
environment:
|
environment:
|
||||||
@ -15,8 +19,14 @@ services:
|
|||||||
POSTGRES_PASSWORD: secure
|
POSTGRES_PASSWORD: secure
|
||||||
POSTGRES_DB: ttrss
|
POSTGRES_DB: ttrss
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
driver: local
|
driver: local
|
||||||
|
plugins:
|
||||||
|
driver: local
|
||||||
|
icons:
|
||||||
|
driver: local
|
||||||
|
themes:
|
||||||
|
driver: local
|
||||||
|
@ -5,7 +5,9 @@
|
|||||||
chown -R nginx:nginx /var/www/app/lock
|
chown -R nginx:nginx /var/www/app/lock
|
||||||
chown -R nginx:nginx /var/www/app/cache
|
chown -R nginx:nginx /var/www/app/cache
|
||||||
chown -R nginx:nginx /var/www/app/feed-icons
|
chown -R nginx:nginx /var/www/app/feed-icons
|
||||||
|
chown -R nginx:nginx /var/www/app/plugins.local
|
||||||
|
chown -R nginx:nginx /var/www/app/themes.local
|
||||||
|
|
||||||
s6-setuidgid nginx php7 /var/www/app/docker_setup.php
|
s6-setuidgid nginx php /var/www/app/docker_setup.php
|
||||||
|
|
||||||
exec /bin/s6-svscan /etc/services.d
|
exec /bin/s6-svscan /etc/services.d
|
||||||
|
Reference in New Issue
Block a user