added .env files. Added wallabang dockercompose.

This commit is contained in:
root 2022-02-28 14:57:01 +08:00
parent 13bd9e62cd
commit 12dbf350db
3 changed files with 59 additions and 1 deletions

4
.gitignore vendored
View File

@ -1,7 +1,11 @@
# First, ignore everything # First, ignore everything
* *
!.gitignore
# Now, whitelist anything that's a directory # Now, whitelist anything that's a directory
!*/ !*/
# And all the file types you're interested in. # And all the file types you're interested in.
!**/*docker-compose.yaml* !**/*docker-compose.yaml*
!**/*docker-compose.yml* !**/*docker-compose.yml*
#docker-environment environment files
!**/*.env

7
librenms/.env Executable file
View File

@ -0,0 +1,7 @@
TZ="Asia/Kuala_Lumpur"
PUID=1000
PGID=100
MYSQL_DATABASE=librenms
MYSQL_USER=librenms
MYSQL_PASSWORD=asupersecretpassword

View File

@ -0,0 +1,47 @@
version: '3'
services:
wallabag:
image: wallabag/wallabag
environment:
- POSTGRES_PASSWORD=wallabag
- POSTGRES_USER=wallabag
- MYSQL_ROOT_PASSWORD=wallabag
- SYMFONY__ENV__DATABASE_DRIVER=pdo_sqlite
- SYMFONY__ENV__DATABASE_HOST=db
- SYMFONY__ENV__DATABASE_PORT=5432
- SYMFONY__ENV__DATABASE_NAME=wallabag
- SYMFONY__ENV__DATABASE_USER=wallabag
- SYMFONY__ENV__DATABASE_PASSWORD=wallabag
- SYMFONY__ENV__DATABASE_CHARSET=utf8mb4
- SYMFONY__ENV__MAILER_HOST=127.0.0.1
- SYMFONY__ENV__MAILER_USER=~
- SYMFONY__ENV__MAILER_PASSWORD=~
- SYMFONY__ENV__FROM_EMAIL=wallabag@example.com
- SYMFONY__ENV__DOMAIN_NAME=https://wallabag.ahmadfarhan.com
- SYMFONY__ENV__SERVER_NAME="Your wallabag instance"
- SYMFONY__ENV__FOSUSER_CONFIRMATION=false
ports:
- "8765:80"
volumes:
- ./images:/var/www/wallabag/web/assets/images
- ./data:/var/www/wallabag/data
- ./php.ini:/etc/php7/php.ini
healthcheck:
test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost"]
interval: 1m
timeout: 3s
# depends_on:
# - db
# db:
# image: postgres
# environment:
# - POSTGRES_USER=wallabag
# - POSTGRES_PASSWORD=wallabag
# - POSTGRES_DB=wallabag
# volumes:
# - ./postgres:/var/lib/postgresql/data
# healthcheck:
# test: ["CMD-SHELL", "pg_isready"]
# interval: 10s
# timeout: 5s
# retries: 5