mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19:43 +02:00
parent
66e11cefbc
commit
44febcc25c
2 changed files with 52 additions and 3 deletions
|
@ -1,8 +1,7 @@
|
||||||
FROM golang:1.12-alpine as builder
|
FROM golang:1.12-alpine as builder
|
||||||
COPY . /go/src/github.com/documize/community
|
COPY . /go/src/github.com/documize/community
|
||||||
|
RUN cd /go/src/github.com/documize/community
|
||||||
RUN cd /go/src/github.com/documize/community && \
|
RUN env GOOS=linux GOARCH=amd64 GODEBUG=tls13=1 go build -o bin/documize-community-linux-amd64 ./edition/community.go
|
||||||
env GOOS=linux GOARCH=amd64 GODEBUG=tls13=1 go build -o bin/documize-community-linux-amd64 ./edition/community.go
|
|
||||||
|
|
||||||
# build release image
|
# build release image
|
||||||
FROM alpine:3.10
|
FROM alpine:3.10
|
||||||
|
|
50
docker-compose.yaml
Normal file
50
docker-compose.yaml
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
# This Docker Compose file will start up Documize with PostgreSQL.
|
||||||
|
#
|
||||||
|
# Use 'documize-enterprise-linux-amd64' for Enterprise 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:latest
|
||||||
|
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://documize.s3-eu-west-1.amazonaws.com/downloads/documize-enterprise-linux-amd64 && chmod 777 ./documize-enterprise-linux-amd64 && ./documize-enterprise-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:
|
Loading…
Add table
Add a link
Reference in a new issue