Blame

2a351a Freedom 2026-01-29 18:00:44 1
# Complete-Setup
2
3
Here is the complete setup for all services.
4
5
```yaml
6
version: "3.9"
7
8
services:
9
certbot:
10
image: certbot/certbot:latest
11
container_name: certbot
12
volumes:
13
- ./certbot/www:/var/www/certbot
14
- ./certbot/conf:/etc/letsencrypt
15
16
nginx:
17
image: nginx:alpine
18
container_name: nginx
19
restart: unless-stopped
20
depends_on:
21
- freshrss
22
- wallabag
23
ports:
24
- "80:80"
25
- "443:443"
26
volumes:
27
- ./nginx/conf.d:/etc/nginx/conf.d:ro
28
- ./certbot/www:/var/www/certbot:ro
29
- ./certbot/conf:/etc/letsencrypt:ro
30
31
postgres:
32
image: postgres:16
33
container_name: postgres
34
restart: unless-stopped
35
environment:
36
POSTGRES_USER: postgres
37
POSTGRES_PASSWORD: change_this_admin_password
38
volumes:
39
- ./postgres_data:/var/lib/postgresql/data
40
- ./initdb:/docker-entrypoint-initdb.d
41
ports:
42
- "5432:5432"
43
44
freshrss:
45
image: freshrss/freshrss:latest
46
container_name: freshrss
47
restart: unless-stopped
48
depends_on:
49
- postgres
50
environment:
51
TZ: UTC
52
volumes:
53
- ./freshrss_data:/var/www/FreshRSS/data
54
- ./freshrss_extensions:/var/www/FreshRSS/extensions
55
56
wallabag:
57
image: wallabag/wallabag:latest
58
container_name: wallabag
59
restart: unless-stopped
60
depends_on:
61
- postgres
62
environment:
63
SYMFONY__ENV__DOMAIN_NAME: "https://wallabag.manxialiu.org"
64
SYMFONY__ENV__DATABASE_DRIVER: pdo_pgsql
65
SYMFONY__ENV__DATABASE_HOST: postgres
66
SYMFONY__ENV__DATABASE_PORT: 5432
67
SYMFONY__ENV__DATABASE_NAME: wallabag
68
SYMFONY__ENV__DATABASE_USER: wallabag
69
SYMFONY__ENV__DATABASE_PASSWORD: change_this_wallabag_password
70
volumes:
71
- ./wallabag/data:/var/www/wallabag/data
72
- ./wallabag/images:/var/www/wallabag/web/assets/images
73
monica:
74
image: monica:latest
75
container_name: monica
76
restart: unless-stopped
77
depends_on:
78
- monica_db
79
environment:
80
APP_ENV: production
81
APP_KEY: base64:SvGCjh161p/00kgNrZm7E8xhotqnpX94d46w8cnkM0g=
82
APP_DEBUG: "false"
83
APP_URL: https://monica.manxialiu.org
84
DB_CONNECTION: mysql
85
DB_HOST: monica_db
86
DB_PORT: 3306
87
DB_DATABASE: monica
88
DB_USERNAME: monica
89
DB_PASSWORD: change_this_monica_password
90
TRUSTED_PROXIES: "**"
91
volumes:
92
- ./monica_data:/var/www/html/storage
93
monica_db:
94
image: mariadb:11
95
container_name: monica_db
96
restart: unless-stopped
97
environment:
98
MARIADB_DATABASE: monica
99
MARIADB_USER: monica
100
MARIADB_PASSWORD: change_this_monica_password
101
MARIADB_ROOT_PASSWORD: change_this_root_password
102
volumes:
103
- ./monica_db_data:/var/lib/mysql
104
105
woeditor:
106
image: wechatofficial:latest
107
container_name: woeditor
108
ports:
109
- "5173:5173"
110
environment:
111
- NODE_ENV=development
112
# Hot reload: mount your code into the container
113
volumes:
114
- ./WechatOfficialEditor:/app
115
# Keep container's node_modules (avoids overwriting by the bind mount)
116
- /app/node_modules
117
command: pnpm web dev --host 0.0.0.0 --port 5173
118
119
```