Compare commits
14 commits
Author | SHA1 | Date | |
---|---|---|---|
4becc16731 | |||
f30f49d668 | |||
449c9217d2 | |||
4b8d0a85bc | |||
9a05953534 | |||
591c8fb409 | |||
641519769b | |||
464a40f5e9 | |||
025c9f65a4 | |||
e1a53e43a4 | |||
88d083600e | |||
c00508354f | |||
a06ba47116 | |||
47d7203928 |
|
@ -2,7 +2,7 @@ FROM ubuntu:16.04
|
||||||
|
|
||||||
MAINTAINER Julien Fastré <julienfastre@cvfe.be>
|
MAINTAINER Julien Fastré <julienfastre@cvfe.be>
|
||||||
|
|
||||||
ARG version=3.1.5
|
ARG version=3.2.9
|
||||||
|
|
||||||
WORKDIR /tmp/build
|
WORKDIR /tmp/build
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@ RUN echo "untar SOPE sources" \
|
||||||
postgresql-server-dev-9.5 \
|
postgresql-server-dev-9.5 \
|
||||||
libmemcached-dev \
|
libmemcached-dev \
|
||||||
libcurl4-openssl-dev \
|
libcurl4-openssl-dev \
|
||||||
|
tzdata \
|
||||||
&& echo "compiling sope & sogo" \
|
&& echo "compiling sope & sogo" \
|
||||||
&& cd /tmp/SOPE \
|
&& cd /tmp/SOPE \
|
||||||
&& ./configure --with-gnustep --enable-debug --disable-strip \
|
&& ./configure --with-gnustep --enable-debug --disable-strip \
|
||||||
|
@ -53,6 +54,8 @@ RUN echo "untar SOPE sources" \
|
||||||
# add sogo.conf
|
# add sogo.conf
|
||||||
ADD sogo.default.conf /etc/sogo/sogo.conf
|
ADD sogo.default.conf /etc/sogo/sogo.conf
|
||||||
|
|
||||||
|
VOLUME /usr/local/lib/GNUstep/SOGo/WebServerResources
|
||||||
|
|
||||||
EXPOSE 20000
|
EXPOSE 20000
|
||||||
|
|
||||||
USER sogo
|
USER sogo
|
||||||
|
|
54
README.md
54
README.md
|
@ -12,7 +12,7 @@ Microsoft Outlook support is provided through an OpenChange storage provider to
|
||||||
|
|
||||||
# Use with care and contribute to Inverse Inc
|
# Use with care and contribute to Inverse Inc
|
||||||
|
|
||||||
This image is still experimental. Use with care.
|
This image is in use in a organization of 80 people, without any known problem (except when we migrated from 2.3 to 3.2, see above).
|
||||||
|
|
||||||
Since July 2016, Inverse Inc. [ask for some support](https://sogo.nu/nc/support/faq/article/why-production-packages-required-a-support-contract-from-inverse.html) to provide debian packages. This should help them to increase their investments in SOGo. If you can afford [this](https://sogo.nu/support/index_new.html#/commercial), you should consider getting support on Inverse Inc.
|
Since July 2016, Inverse Inc. [ask for some support](https://sogo.nu/nc/support/faq/article/why-production-packages-required-a-support-contract-from-inverse.html) to provide debian packages. This should help them to increase their investments in SOGo. If you can afford [this](https://sogo.nu/support/index_new.html#/commercial), you should consider getting support on Inverse Inc.
|
||||||
|
|
||||||
|
@ -38,6 +38,10 @@ In order to run it You should create an adapt a config file to your needs, [usin
|
||||||
|
|
||||||
This is a `docker-compose.yml` file you could adapt to launch this image :
|
This is a `docker-compose.yml` file you could adapt to launch this image :
|
||||||
|
|
||||||
|
**Note** : the docker compose file in this project can be used, but it is using a non-standard port. After login, if you use a different port thant port 80, the redirection will not work and you will be redirected to `http://localhost/SOGo/<your path>` instead of `http://localhost:8080/SOGo/<your path>`. Simply add the missing port part (replace `http://localhost/SOGo` by `http://localhost:8080/SOGo`).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
version: '2'
|
version: '2'
|
||||||
|
@ -48,16 +52,18 @@ services:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
args:
|
args:
|
||||||
version: 3.1.5
|
# replace by your desired version
|
||||||
# if you prefer using a pre-built image
|
version: x.x.x
|
||||||
# image: julienfastre/sogo:3.1
|
# if you prefer using a pre-built image (replace by your desired version)
|
||||||
|
# image: julienfastre/sogo:x.x
|
||||||
links:
|
links:
|
||||||
- db
|
- db
|
||||||
volumes:
|
volumes:
|
||||||
# required to allow nginx to access to resources
|
# replace by your own file
|
||||||
- /usr/local/lib/GNUstep/SOGo/WebServerResources/
|
|
||||||
# create
|
|
||||||
- /path/to/your/file/sogo.conf:/etc/sogo/sogo.conf
|
- /path/to/your/file/sogo.conf:/etc/sogo/sogo.conf
|
||||||
|
environment:
|
||||||
|
# set the timezone in environment (see https://serverfault.com/a/826222/194817)
|
||||||
|
- "TZ=Europe/Brussels"
|
||||||
db:
|
db:
|
||||||
image: postgres:9.5
|
image: postgres:9.5
|
||||||
# for debug purpose only: reach the database from outside
|
# for debug purpose only: reach the database from outside
|
||||||
|
@ -70,17 +76,19 @@ services:
|
||||||
links:
|
links:
|
||||||
- sogo
|
- sogo
|
||||||
volumes_from:
|
volumes_from:
|
||||||
|
# you will be able to serve assets from sogo image
|
||||||
- sogo:ro
|
- sogo:ro
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
# publish on port 80
|
||||||
|
- "80:80"
|
||||||
|
# if port 80 is already in use, **replace** by this line. (for testing only) Note that, after login, you will have to add the ":8080" in url
|
||||||
|
# - "8080:80"
|
||||||
volumes:
|
volumes:
|
||||||
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
You should then be able to reach sogo on http://localhost:8080/SOGo.
|
You should then be able to reach sogo on http://localhost:PORT/SOGo. Using the actual `nginx.conf` file **and** using a different port than the port 80 or 443, after login, you will encounter an http error on page `http://localhost/SOGo/<something>` Simply re-add the PORT number to reach correct server.
|
||||||
|
|
||||||
**Warning** after login, the redirection does not work and you will reach http://localhost/SOGo/<your path> instead of http://localhost:8080/SOGo/<your path>. Simply add the missing port part.
|
|
||||||
|
|
||||||
## How to build this image
|
## How to build this image
|
||||||
|
|
||||||
|
@ -92,6 +100,26 @@ Example of how to build this image :
|
||||||
# download sources
|
# download sources
|
||||||
$ git clone https://framagit.org/julienfastre/docker-sogo.git
|
$ git clone https://framagit.org/julienfastre/docker-sogo.git
|
||||||
$ cd docker-sogo
|
$ cd docker-sogo
|
||||||
# launch the build using the version 3.1.5
|
# launch the build using specific version (replace with your own version)
|
||||||
$ docker build --build-arg version=3.1.5 .
|
$ docker build --build-arg version=x.x.x .
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Timezone issue
|
||||||
|
|
||||||
|
The timezone may be set in environement, using the `TZ` variable. See example in `docker-compose.yml`.
|
||||||
|
|
||||||
|
## migrating from 2.3 to 3.1|3.2 using docker-compose
|
||||||
|
|
||||||
|
The assets (css, js, ...) are contained in a volume. Those assets are completely different from version 2.3 to version 3.1 and 3.2. If you used `docker-compose` and migrated from 2.3 to 3.2, you have to either :
|
||||||
|
|
||||||
|
- remove the volume containing those assets, to let a clean place for the asset for the new version.
|
||||||
|
- or use an anonymous volume, which will be re-created on each restart
|
||||||
|
|
||||||
|
## Usage of sendmail / `SOGoMailingMechanism`
|
||||||
|
|
||||||
|
Sendmail is not installed in this image: sogo must be able to send mails using a smtp server. The `sogo.conf` file must have the option `SOGoMailingMechanism` on `smtp`. See [the section "SMTP Server Configuration" of the sogo manual](https://sogo.nu/files/docs/SOGo%20Installation%20Guide.pdf#33).
|
||||||
|
|
||||||
|
## Bug report
|
||||||
|
|
||||||
|
Please reports bug on https://github.com/julienfastre/docker-sogo/issues
|
||||||
|
|
||||||
|
|
|
@ -2,18 +2,26 @@ version: '2'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
sogo:
|
sogo:
|
||||||
|
|
||||||
# if you want to build your own image
|
# if you want to build your own image
|
||||||
# build:
|
|
||||||
# context: .
|
build:
|
||||||
# args:
|
context: .
|
||||||
# - version=2.3.16
|
args:
|
||||||
# if you want to use builded image
|
- version=3.2.6a
|
||||||
image: julienfastre/sogo:3.1
|
|
||||||
|
# if you want to use builded image, uncomment next line
|
||||||
|
# image: julienfastre/sogo:3.2
|
||||||
|
|
||||||
links:
|
links:
|
||||||
- db
|
- db
|
||||||
volumes:
|
volumes:
|
||||||
- /usr/local/lib/GNUstep/SOGo/WebServerResources/
|
|
||||||
- /path/to/my/sogo.conf:/etc/sogo/sogo.conf
|
# replace by the path to your own sogo.conf file
|
||||||
|
|
||||||
|
- ./../sogo.conf:/etc/sogo/sogo.conf
|
||||||
|
environment:
|
||||||
|
- "TZ=Europe/Amsterdam"
|
||||||
db:
|
db:
|
||||||
image: postgres:9.5
|
image: postgres:9.5
|
||||||
ports:
|
ports:
|
||||||
|
|
Loading…
Reference in a new issue