docker-sogo/docker-compose.yml
Julien Fastré c00508354f adding a volume with webresources
those webresources are share with a nginx container, and contains css / js
2016-10-28 14:38:47 +02:00

40 lines
712 B
YAML

version: '2'
services:
sogo:
# if you want to build your own image
build:
context: .
args:
- version=3.1.5
# if you want to use builded image, uncomment next line
# image: julienfastre/sogo:3.1
links:
- db
volumes:
# replace by the path to your own sogo.conf file
- ./../sogo.conf:/etc/sogo/sogo.conf
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