jared
1 year ago
1 changed files with 38 additions and 0 deletions
@ -0,0 +1,38 @@
|
||||
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: |
Loading…
Reference in new issue