34 lines
681 B
YAML
34 lines
681 B
YAML
version: '3'
|
|
|
|
services:
|
|
server:
|
|
image: registry.gitlab.com/commento/commento
|
|
ports:
|
|
- 8080:8080
|
|
environment:
|
|
COMMENTO_ORIGIN: http://commento.example.com:8080
|
|
COMMENTO_PORT: 8080
|
|
COMMENTO_POSTGRES: postgres://postgres:postgres@db:5432/commento?sslmode=disable
|
|
depends_on:
|
|
- db
|
|
networks:
|
|
- db_network
|
|
db:
|
|
image: postgres
|
|
environment:
|
|
POSTGRES_DB: commento
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
ports:
|
|
- 5432:5432
|
|
networks:
|
|
- db_network
|
|
volumes:
|
|
- postgres_data_volume:/var/lib/postgresql/data
|
|
|
|
networks:
|
|
db_network:
|
|
|
|
volumes:
|
|
postgres_data_volume:
|