-
Notifications
You must be signed in to change notification settings - Fork 211
/
docker-compose.yaml
50 lines (46 loc) · 1.42 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# This Docker Compose file will start up Documize with PostgreSQL.
#
# Use 'documize-community-plus-linux-amd64' for Community+ Edition (default).
# Use 'documize-community-linux-amd64' for Community Edition.
#
# You can move between editions anytime without any data loss
# because of the common database schema.
#
# The latest product release executable will be pulled down
# from a public Amazon S3 bucket.
#
# Use 'docker-compose up|down' to start or stop containers.
version: "3"
services:
db:
image: postgres:12
restart: always
ports:
- 5432:5432
environment:
POSTGRES_USER: documize
POSTGRES_PASSWORD: Passw0rd
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=Passw0rd sslmode=disable
DOCUMIZEDBTYPE: postgresql
DOCUMIZESALT: hsk3Acndky8cdTNx3
DOCUMIZELOCATION: selfhost
networks:
- documizenet
volumes:
db-data:
networks:
documizenet: