Commento - Selfhosted Blog Comment
Environment
- Ubuntu 22.04 LTS
- Docker 20.10.12
Install docker
1
2
sudo apt install docker.io
sudo apt install docker-compose
Bina folder
1
2
mkdir commento
cd commento
Bina docker-compose.yaml file
1
touch docker-compose.yaml
Edit docker-compose.yaml file
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
version: '3'
services:
commento:
container_name: commento
image: caroga/commentoplusplus:v1.8.7
ports:
- 8080:8080
environment:
COMMENTO_ORIGIN: http://localhost:8080
COMMENTO_PORT: 8080
COMMENTO_POSTGRES: postgres://postgres:postgres@db:5432/commento?sslmode=disable
# COMMENTO_FORBID_NEW_OWNERS: 'true' # enable this after your own registration
COMMENTO_GZIP_STATIC: 'true'
depends_on:
- db
db:
image: postgres:12.5-alpine
container_name: commento_db
environment:
POSTGRES_DB: commento
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgr
volumes:
- commento_db:/var/lib/postgresql/data
volumes:
commento_db:
Run docker-compose
1
sudo docker-compose up -d
Layari webserver
http://localhost:8080
Link berguna
Pos ini dilesenkan di bawah
CC BY 4.0
oleh penulis.