mirror of
https://github.com/wallabag/docker
synced 2025-12-13 09:46:27 +00:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6a7bbbb8d0 | ||
|
|
e5456115c1 | ||
|
|
7b68684720 | ||
|
|
434b17cd8f | ||
|
|
5123e9de38 | ||
|
|
5682aefa74 | ||
|
|
bf82658342 | ||
|
|
abb0647cbd |
@@ -2,7 +2,7 @@ FROM alpine:edge
|
||||
|
||||
LABEL maintainer "Marvin Steadfast <marvin@xsteadfastx.org>"
|
||||
|
||||
ARG WALLABAG_VERSION=2.2.2
|
||||
ARG WALLABAG_VERSION=2.3.0
|
||||
|
||||
RUN set -ex \
|
||||
&& apk update \
|
||||
@@ -46,7 +46,7 @@ RUN set -ex \
|
||||
&& rm -rf /var/cache/apk/* \
|
||||
&& ln -sf /dev/stdout /var/log/nginx/access.log \
|
||||
&& ln -sf /dev/stderr /var/log/nginx/error.log \
|
||||
&& curl -s http://getcomposer.org/installer | php \
|
||||
&& curl -s https://getcomposer.org/installer | php \
|
||||
&& mv composer.phar /usr/local/bin/composer \
|
||||
&& git clone --branch $WALLABAG_VERSION --depth 1 https://github.com/wallabag/wallabag.git /var/www/wallabag
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@ Default login is `wallabag:wallabag`.
|
||||
- `-e SYMFONY__ENV__MAILER_PASSWORD=...`(defaults to "~", the SMTP password)
|
||||
- `-e SYMFONY__ENV__FROM_EMAIL=...`(defaults to "wallabag@example.com", the address wallabag uses for outgoing emails)
|
||||
- `-e SYMFONY__ENV__FOSUSER_REGISTRATION=...`(defaults to "true", enable or disable public user registration)
|
||||
- `-e SYMFONY__ENV__DOMAIN_NAME=...` defaults to "https://your-wallabag-url-instance.com", the URL of your wallabag instance)
|
||||
- `-e POPULATE_DATABASE=...`(defaults to "True". Does the DB has to be populated or is it an existing one)
|
||||
|
||||
## SQLite
|
||||
@@ -42,7 +43,7 @@ $ docker run -p 80:80 wallabag/wallabag
|
||||
and point your browser to `http://localhost:80`. For persistent storage you should start the container with a volume:
|
||||
|
||||
```
|
||||
$ docker run -v /opt/wallabag:/var/www/wallabag/data -p 80:80 wallabag/wallabag
|
||||
$ docker run -v /opt/wallabag/data:/var/www/wallabag/data -v -/opt/wallabag/images:/var/www/wallabag/web/assets/images -p 80:80 wallabag/wallabag
|
||||
```
|
||||
|
||||
## MariaDB / MySQL
|
||||
@@ -59,7 +60,7 @@ $ docker run --name wallabag --link wallabag-db:wallabag-db -e "MYSQL_ROOT_PASSW
|
||||
For using PostgreSQL you have to define some environment variables with the container. Example:
|
||||
|
||||
```
|
||||
$ docker run --name wallabag-db -e "POSTGRES_PASSWORD=my-secret-pw" -e "POSTGRES_USER=my-super-user" -d postgres
|
||||
$ docker run --name wallabag-db -e "POSTGRES_PASSWORD=my-secret-pw" -e "POSTGRES_USER=my-super-user" -d postgres:9.6
|
||||
$ docker run --name wallabag --link wallabag-db:wallabag-db -e "POSTGRES_PASSWORD=my-secret-pw" -e "POSTGRES_USER=my-super-user" -e "SYMFONY__ENV__DATABASE_DRIVER=pdo_pgsql" -e "SYMFONY__ENV__DATABASE_HOST=wallabag-db" -e "SYMFONY__ENV__DATABASE_PORT=5432" -e "SYMFONY__ENV__DATABASE_NAME=wallabag" -e "SYMFONY__ENV__DATABASE_USER=wallabag" -e "SYMFONY__ENV__DATABASE_PASSWORD=wallapass" -p 80:80 wallabag/wallabag
|
||||
```
|
||||
|
||||
@@ -109,12 +110,14 @@ services:
|
||||
- SYMFONY__ENV__FROM_EMAIL=wallabag@example.com
|
||||
ports:
|
||||
- "80"
|
||||
volumes:
|
||||
- /opt/wallabag/images:/var/www/wallabag/web/assets/images
|
||||
db:
|
||||
image: mariadb
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=wallaroot
|
||||
volumes:
|
||||
- /opt/wallabag:/var/lib/mysql
|
||||
- /opt/wallabag/data:/var/lib/mysql
|
||||
redis:
|
||||
image: redis:alpine
|
||||
```
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
mailer_password: "{{ lookup('env', 'SYMFONY__ENV__MAILER_PASSWORD')|default('~', true) }}"
|
||||
from_email: "{{ lookup('env', 'SYMFONY__ENV__FROM_EMAIL')|default('wallabag@example.com', true) }}"
|
||||
registration: "{{ lookup('env', 'SYMFONY__ENV__FOSUSER_REGISTRATION')|default('true', true) }}"
|
||||
domain_name: "{{ lookup('env', 'SYMFONY__ENV__DOMAIN_NAME')|default('https://your-wallabag-url-instance.com', true) }}"
|
||||
|
||||
tasks:
|
||||
|
||||
|
||||
@@ -10,6 +10,8 @@ parameters:
|
||||
database_socket: null
|
||||
database_charset: utf8
|
||||
|
||||
domain_name: {{ domain_name }}
|
||||
|
||||
mailer_transport: smtp
|
||||
mailer_host: {{ mailer_host }}
|
||||
mailer_user: {{ mailer_user }}
|
||||
@@ -45,6 +47,3 @@ parameters:
|
||||
redis_port: 6379
|
||||
redis_path: null
|
||||
redis_password: null
|
||||
|
||||
# sites credentials
|
||||
sites_credentials: {}
|
||||
|
||||
@@ -10,6 +10,8 @@ parameters:
|
||||
database_socket: null
|
||||
database_charset: utf8
|
||||
|
||||
domain_name: https://your-wallabag-url-instance.com
|
||||
|
||||
test_database_driver: pdo_sqlite
|
||||
test_database_host: 127.0.0.1
|
||||
test_database_port: ~
|
||||
@@ -53,6 +55,3 @@ parameters:
|
||||
redis_port: 6379
|
||||
redis_path: null
|
||||
redis_password: null
|
||||
|
||||
# sites credentials
|
||||
sites_credentials: {}
|
||||
|
||||
@@ -18,7 +18,7 @@ services:
|
||||
ports:
|
||||
- "127.0.0.1:80:80"
|
||||
db:
|
||||
image: postgres
|
||||
image: postgres:9.6
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=my-secret-pw
|
||||
- POSTGRES_USER=my-super-user
|
||||
|
||||
Reference in New Issue
Block a user