wallabag / docker

Official docker-composer for wallabag.
589 stars 150 forks source link

docker compose deployment problem #327

Open zsxgib opened 1 year ago

zsxgib commented 1 year ago

Environment

cat docker-compose.yml version: '3' services: wallabag: image: wallabag/wallabag:2.4.2

相当于docker pull wallabag/wallabag

container_name: wallabag  
depends_on:   
  - db
  - redis
ports:
  - 12488:80  # 
environment:
  - MYSQL_ROOT_PASSWORD=wallaroot
  - 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=wallapass
  - SYMFONY__ENV__DATABASE_CHARSET=utf8mb4
  - SYMFONY__ENV__MAILER_HOST=~
  - SYMFONY__ENV__MAILER_USER=~
  - SYMFONY__ENV__MAILER_PASSWORD=~
  - SYMFONY__ENV__FROM_EMAIL=XXXXX@qq.com # 
  - SYMFONY__ENV__DOMAIN_NAME=http://ip # 
volumes: # 
  - /volume1/docker/wallabag/images:/var/www/wallabag/web/assets/images
  - /volume1/docker/wallabag/data:/var/www/wallabag/data
restart: always

db: image: mariadb container_name: wallabag_mariadb environment:

My app/config/parameters.yml is: ``` PASTE HERE ```

What steps will reproduce the bug?

zsxgib commented 1 year ago

2023-04-20_15-34_1 2023-04-20_15-34

j0k3r commented 1 year ago

What 404 you got from the network tab of the developer tools of your browser? Looks like the SYMFONY__ENV__DOMAIN_NAME is wrong.

zsxgib commented 1 year ago

I am writing SYMFONYENVDOMAIN_NAME=http://xxx.xxx.xxx.xxx Is this wrong?

j0k3r commented 1 year ago

I don't know, it seems ok. But does http://xxx.xxx.xxx.xxx/ is the host to access your wallabag? Can you answer my question as well?

dinlo commented 1 year ago

I am writing SYMFONYENVDOMAIN_NAME=http://xxx.xxx.xxx.xxx Is this wrong?

Faced the same problem. In your case, the solution will look like this SYMFONYENVDOMAIN_NAME=http://xxx.xxx.xxx.xxx:12488