mirror of
https://github.com/wallabag/docker.git
synced 2026-02-22 01:37:49 +01:00
Compare commits
34 Commits
035686c9f9
...
2.6.13
| Author | SHA1 | Date | |
|---|---|---|---|
| 096ea7f79c | |||
| 2c1ec84dc7 | |||
| 488814d187 | |||
| 3808b524fc | |||
| dd237ec16e | |||
| 84756ac1fd | |||
| 60ce6d2e4f | |||
| b228deb919 | |||
| 52afa94c77 | |||
| 55976e23e5 | |||
| 3975a28546 | |||
| 0e58189b97 | |||
| 2d96e30450 | |||
| 424642d3b9 | |||
| 364b1b3d84 | |||
| c9104abfeb | |||
| 78d6d36e0c | |||
| 2a78ed65fe | |||
| cb78d1c98c | |||
| 19b6080f31 | |||
| 85c82d22c4 | |||
| 2ab5b95caf | |||
| 2c4fc77b58 | |||
| bffc1412bf | |||
| 588c21b192 | |||
| 6f2ec8654e | |||
| bdbf7b909a | |||
| bf62096c0e | |||
| 919f82516c | |||
| 2515407009 | |||
| 9241c7d799 | |||
| 18d9f742fb | |||
| b5d9ba681c | |||
| 746c6e682b |
@ -13,7 +13,7 @@ FROM alpine:3.18
|
|||||||
|
|
||||||
COPY --from=builder /go/bin/envsubst /usr/bin/envsubst
|
COPY --from=builder /go/bin/envsubst /usr/bin/envsubst
|
||||||
|
|
||||||
ARG WALLABAG_VERSION=2.6.4
|
ARG WALLABAG_VERSION=2.6.13
|
||||||
|
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& apk add --no-cache \
|
&& apk add --no-cache \
|
||||||
@ -32,6 +32,7 @@ RUN set -ex \
|
|||||||
php81-iconv \
|
php81-iconv \
|
||||||
php81-json \
|
php81-json \
|
||||||
php81-mbstring \
|
php81-mbstring \
|
||||||
|
php81-opcache \
|
||||||
php81-openssl \
|
php81-openssl \
|
||||||
php81-pecl-amqp \
|
php81-pecl-amqp \
|
||||||
php81-pecl-imagick \
|
php81-pecl-imagick \
|
||||||
@ -83,6 +84,8 @@ ENV PATH="${PATH}:/var/www/wallabag/bin"
|
|||||||
# Set console entry path
|
# Set console entry path
|
||||||
WORKDIR /var/www/wallabag
|
WORKDIR /var/www/wallabag
|
||||||
|
|
||||||
|
HEALTHCHECK CMD curl --fail --silent --show-error --user-agent healthcheck http://localhost/api/info || exit 1
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
CMD ["wallabag"]
|
CMD ["wallabag"]
|
||||||
|
|||||||
@ -41,6 +41,7 @@ Default login is `wallabag:wallabag`.
|
|||||||
- `-e SYMFONY__ENV__SENTRY_DSN=...` (defaults to "~", this is the data source name for sentry)
|
- `-e SYMFONY__ENV__SENTRY_DSN=...` (defaults to "~", this is the data source name for sentry)
|
||||||
- `-e POPULATE_DATABASE=...`(defaults to "True". Does the DB has to be populated or is it an existing one)
|
- `-e POPULATE_DATABASE=...`(defaults to "True". Does the DB has to be populated or is it an existing one)
|
||||||
- `-e SYMFONY__ENV__SERVER_NAME=...` (defaults to "Your wallabag instance". Specifies a user-friendly name for the 2FA issuer)
|
- `-e SYMFONY__ENV__SERVER_NAME=...` (defaults to "Your wallabag instance". Specifies a user-friendly name for the 2FA issuer)
|
||||||
|
- `-e PHP_MEMORY_LIMIT=...` (allows you to change the PHP `memory_limit` value. defaults to 128M, and should be a number and unit, eg. 512K, 128M, 2G, or a number of bytes)
|
||||||
|
|
||||||
## SQLite
|
## SQLite
|
||||||
|
|
||||||
@ -108,7 +109,6 @@ $ docker exec -t NAME_OR_ID_OF_YOUR_WALLABAG_CONTAINER /var/www/wallabag/bin/con
|
|||||||
An example [docker-compose](https://docs.docker.com/compose/) file can be seen below:
|
An example [docker-compose](https://docs.docker.com/compose/) file can be seen below:
|
||||||
|
|
||||||
```
|
```
|
||||||
version: '3'
|
|
||||||
services:
|
services:
|
||||||
wallabag:
|
wallabag:
|
||||||
image: wallabag/wallabag
|
image: wallabag/wallabag
|
||||||
@ -131,10 +131,6 @@ services:
|
|||||||
- "80"
|
- "80"
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/wallabag/images:/var/www/wallabag/web/assets/images
|
- /opt/wallabag/images:/var/www/wallabag/web/assets/images
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost/api/info"]
|
|
||||||
interval: 1m
|
|
||||||
timeout: 3s
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
- redis
|
- redis
|
||||||
@ -146,7 +142,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- /opt/wallabag/data:/var/lib/mysql
|
- /opt/wallabag/data:/var/lib/mysql
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "/usr/local/bin/healthcheck.sh", "--innodb_initialized"]
|
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
|
||||||
interval: 20s
|
interval: 20s
|
||||||
timeout: 3s
|
timeout: 3s
|
||||||
redis:
|
redis:
|
||||||
|
|||||||
@ -28,6 +28,7 @@ provisioner() {
|
|||||||
|
|
||||||
# Replace environment variables
|
# Replace environment variables
|
||||||
envsubst < /etc/wallabag/parameters.template.yml > app/config/parameters.yml
|
envsubst < /etc/wallabag/parameters.template.yml > app/config/parameters.yml
|
||||||
|
envsubst < /etc/wallabag/php-wallabag.template.ini > /etc/php81/conf.d/50_wallabag.ini
|
||||||
|
|
||||||
# Wait for external database
|
# Wait for external database
|
||||||
if [ "$SYMFONY__ENV__DATABASE_DRIVER" = "pdo_mysql" ] || [ "$SYMFONY__ENV__DATABASE_DRIVER" = "pdo_pgsql" ] ; then
|
if [ "$SYMFONY__ENV__DATABASE_DRIVER" = "pdo_mysql" ] || [ "$SYMFONY__ENV__DATABASE_DRIVER" = "pdo_pgsql" ] ; then
|
||||||
|
|||||||
@ -35,8 +35,7 @@ http {
|
|||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen [::]:80 ipv6only=off;
|
||||||
listen [::0]:80;
|
|
||||||
server_name _;
|
server_name _;
|
||||||
root /var/www/wallabag/web;
|
root /var/www/wallabag/web;
|
||||||
|
|
||||||
@ -58,6 +57,7 @@ http {
|
|||||||
# for more information).
|
# for more information).
|
||||||
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
||||||
fastcgi_param DOCUMENT_ROOT $realpath_root;
|
fastcgi_param DOCUMENT_ROOT $realpath_root;
|
||||||
|
fastcgi_read_timeout 300s;
|
||||||
# Prevents URIs that include the front controller. This will 404:
|
# Prevents URIs that include the front controller. This will 404:
|
||||||
# http://domain.tld/app.php/some-path
|
# http://domain.tld/app.php/some-path
|
||||||
# Remove the internal directive to allow URIs like this
|
# Remove the internal directive to allow URIs like this
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
1
root/etc/wallabag/php-wallabag.template.ini
Normal file
1
root/etc/wallabag/php-wallabag.template.ini
Normal file
@ -0,0 +1 @@
|
|||||||
|
memory_limit = ${PHP_MEMORY_LIMIT:-128M}
|
||||||
Reference in New Issue
Block a user