Blame
| 8d859b | Freedom | 2026-01-29 17:56:38 | 1 | # Wallabag |
| 2 | ||||
| 3 | ## Compose services |
|||
| 4 | ||||
| 5 | This is the Wallabag + Postgres part of the stack in `docker-compose.yml`: |
|||
| 6 | ||||
| 7 | ```yaml |
|||
| 8 | version: "3.9" |
|||
| 9 | ||||
| 10 | services: |
|||
| 11 | certbot: |
|||
| 12 | image: certbot/certbot:latest |
|||
| 13 | container_name: certbot |
|||
| 14 | volumes: |
|||
| 15 | - ./certbot/www:/var/www/certbot |
|||
| 16 | - ./certbot/conf:/etc/letsencrypt |
|||
| 17 | ||||
| 18 | nginx: |
|||
| 19 | image: nginx:alpine |
|||
| 20 | container_name: nginx |
|||
| 21 | restart: unless-stopped |
|||
| 22 | depends_on: |
|||
| 23 | - freshrss |
|||
| 24 | - wallabag |
|||
| 25 | ports: |
|||
| 26 | - "80:80" |
|||
| 27 | - "443:443" |
|||
| 28 | volumes: |
|||
| 29 | - ./nginx/conf.d:/etc/nginx/conf.d:ro |
|||
| 30 | - ./certbot/www:/var/www/certbot:ro |
|||
| 31 | - ./certbot/conf:/etc/letsencrypt:ro |
|||
| 32 | ||||
| 33 | postgres: |
|||
| 34 | image: postgres:16 |
|||
| 35 | container_name: postgres |
|||
| 36 | restart: unless-stopped |
|||
| 37 | environment: |
|||
| 38 | POSTGRES_USER: postgres |
|||
| 39 | POSTGRES_PASSWORD: change_this_admin_password |
|||
| 40 | volumes: |
|||
| 41 | - ./postgres_data:/var/lib/postgresql/data |
|||
| 42 | - ./initdb:/docker-entrypoint-initdb.d |
|||
| 43 | ports: |
|||
| 44 | - "5432:5432" |
|||
| 45 | ||||
| 46 | wallabag: |
|||
| 47 | image: wallabag/wallabag:latest |
|||
| 48 | container_name: wallabag |
|||
| 49 | restart: unless-stopped |
|||
| 50 | depends_on: |
|||
| 51 | - postgres |
|||
| 52 | environment: |
|||
| 53 | SYMFONY__ENV__DOMAIN_NAME: "https://wallabag.manxialiu.org" |
|||
| 54 | SYMFONY__ENV__DATABASE_DRIVER: pdo_pgsql |
|||
| 55 | SYMFONY__ENV__DATABASE_HOST: postgres |
|||
| 56 | SYMFONY__ENV__DATABASE_PORT: 5432 |
|||
| 57 | SYMFONY__ENV__DATABASE_NAME: wallabag |
|||
| 58 | SYMFONY__ENV__DATABASE_USER: wallabag |
|||
| 59 | SYMFONY__ENV__DATABASE_PASSWORD: change_this_wallabag_password |
|||
| 60 | volumes: |
|||
| 61 | - ./wallabag/data:/var/www/wallabag/data |
|||
| 62 | - ./wallabag/images:/var/www/wallabag/web/assets/images |
|||
| 63 | ``` |
|||
| 64 | ||||
| 65 | ## Data migration |
|||
| 66 | ||||
| 67 | Manual approach: |
|||
| 68 | ||||
| 69 | * In Wallabag, go to **All entries**. |
|||
| 70 | * Click **Export** (top right). |
|||
| 71 | * Download `all_articles_json`. |
|||
| 72 | * Import the file into the new Wallabag. |
|||
| 73 | ||||
| 74 | Limitation: user accounts are not migrated. TODO: migrate via database. |
