mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-29 22:56:37 -04:00
docker: add Dockerfile and docker-compose.yml
This commit is contained in:
33
docker-compose.yml
Normal file
33
docker-compose.yml
Normal file
@ -0,0 +1,33 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
server:
|
||||
build: .
|
||||
ports:
|
||||
- 8080:8080
|
||||
environment:
|
||||
COMMENTO_ORIGIN: http://192.168.0.172: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/postgres
|
||||
|
||||
networks:
|
||||
db_network:
|
||||
|
||||
volumes:
|
||||
postgres_data_volume:
|
Reference in New Issue
Block a user