2016-09-26 10:22:43 +02:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
sogo:
|
2016-10-28 14:14:09 +02:00
|
|
|
|
2016-10-05 14:11:44 +02:00
|
|
|
# if you want to build your own image
|
2016-10-28 14:14:09 +02:00
|
|
|
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
- version=3.2.0
|
|
|
|
|
|
|
|
# if you want to use builded image, uncomment next line
|
|
|
|
# image: julienfastre/sogo:3.1
|
|
|
|
|
2016-09-26 10:22:43 +02:00
|
|
|
links:
|
|
|
|
- db
|
|
|
|
volumes:
|
2016-10-28 14:14:09 +02:00
|
|
|
|
|
|
|
# replace by the path to your own sogo.conf file
|
|
|
|
|
|
|
|
- ./../sogo.conf:/etc/sogo/sogo.conf
|
2016-09-26 10:22:43 +02:00
|
|
|
db:
|
|
|
|
image: postgres:9.5
|
|
|
|
ports:
|
|
|
|
- "5432"
|
|
|
|
memcached:
|
|
|
|
image: memcached:1.4-alpine
|
|
|
|
nginx:
|
|
|
|
image: nginx
|
|
|
|
links:
|
|
|
|
- sogo
|
|
|
|
volumes_from:
|
|
|
|
- sogo:ro
|
|
|
|
ports:
|
|
|
|
- "8080:80"
|
|
|
|
volumes:
|
|
|
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
|
|
|
|