以下のdocker-compose.ymlを使用して、wallabag、MariaDB、Redisのコンテナを実行します。
docker-compose up -d
docker-compose.yml
version: '2'
services:
wallabag:
image: wallabag/wallabag
container_name: "wallabag"
environment:
- SYMFONY__ENV__DOMAIN_NAME=http://<DockerホストまたはIP>
- MYSQL_ROOT_PASSWORD=wallabag
- SYMFONY__ENV__DATABASE_DRIVER=pdo_mysql
- SYMFONY__ENV__DATABASE_HOST=db
- SYMFONY__ENV__DATABASE_PORT=3306
- SYMFONY__ENV__DATABASE_NAME=wallabag
- SYMFONY__ENV__DATABASE_USER=wallabag
- SYMFONY__ENV__DATABASE_PASSWORD=wallabag
- SYMFONY__ENV__MAILER_HOST=127.0.0.1
- SYMFONY__ENV__MAILER_USER=~
- SYMFONY__ENV__MAILER_PASSWORD=~
- SYMFONY__ENV__FROM_EMAIL=wallabag@example.com
ports:
- "80:80"
volumes:
- "wallabag-data:/var/www/wallabag/web/assets/images"
depends_on:
- db
db:
image: mariadb:10.3
container_name: "wallabag-db"
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
- MYSQL_ROOT_PASSWORD=wallabag
volumes:
- "db-data:/var/lib/mysql"
ports:
- "3306:3306"
redis:
image: redis:alpine
container_name: "redis"
volumes:
- "redis-data:/data"
ports:
- "6379:6379"
volumes:
db-data:
driver: local
wallabag-data:
driver: local
redis-data:
driver: local
○ログオン画面
デフォルトユーザ名/パスワードはwallabag/wallabag
○wallabagの画面
0 件のコメント:
コメントを投稿