You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1006 B

version: "3"
services:
db:
image: postgres:12
restart: always
ports:
- 5432:5432
environment:
POSTGRES_USER: documize
POSTGRES_PASSWORD: ${DOCUMIZE_PASSWORD}
POSTGRES_DB: documize
volumes:
- db-data:/var/lib/postgresql/data
networks:
- documizenet
app:
image: debian:latest
command: /bin/sh -c "apt-get -qq update && apt-get -qq install -y wget && wget https://community-downloads.s3.us-east-2.amazonaws.com/documize-community-plus-linux-amd64 && chmod 777 ./documize-community-plus-linux-amd64 && ./documize-community-plus-linux-amd64"
depends_on:
- db
ports:
- 5001:5001
environment:
DOCUMIZEPORT: 5001
DOCUMIZEDB: host=db port=5432 dbname=documize user=documize password=${DOCUMIZE_PASSWORD} sslmode=disable
DOCUMIZEDBTYPE: postgresql
DOCUMIZESALT: ${DOCUMIZE_SALT}
DOCUMIZELOCATION: selfhost
networks:
- documizenet
volumes:
db-data:
networks:
documizenet: