1
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:
Adhityaa
2018-06-07 14:37:04 +05:30
parent 2e6297d494
commit 8c4220dcd8
2 changed files with 94 additions and 0 deletions

33
docker-compose.yml Normal file
View 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: