switch to new version and improve docker-compose.yml

This commit is contained in:
Julien Fastré 2016-10-05 14:11:44 +02:00
commit 72072d87b3
2 changed files with 12 additions and 12 deletions

View file

@ -48,8 +48,8 @@ services:
build: build:
context: . context: .
args: args:
version: 2.2.13 version: 3.1.5
# if you prefer using an image (not created yet) # if you prefer using a pre-built image
# image: julienfastre/sogo:3.1 # image: julienfastre/sogo:3.1
links: links:
- db - db
@ -92,6 +92,6 @@ 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.4 # launch the build using the version 3.1.5
$ docker build --build-arg version=3.1.4 . $ docker build --build-arg version=3.1.5 .
``` ```

View file

@ -2,18 +2,18 @@ version: '2'
services: services:
sogo: sogo:
build: # if you want to build your own image
context: . # build:
args: # context: .
- version=2.3.15 # args:
# - version=2.3.16
# if you want to use builded image
image: julienfastre/sogo:3.1
links: links:
- db - db
environment:
- "WorkersCount=10"
volumes: volumes:
- /usr/local/lib/GNUstep/SOGo/WebServerResources/ - /usr/local/lib/GNUstep/SOGo/WebServerResources/
- /home/julienfastre/Documents/informatique/sogo-compil/sogo.conf:/etc/sogo/sogo.conf - /path/to/my/sogo.conf:/etc/sogo/sogo.conf
db: db:
image: postgres:9.5 image: postgres:9.5
ports: ports: