docker-sogo/docker-compose.yml

40 lines
712 B
YAML
Raw Normal View History

2016-09-26 10:22:43 +02:00
version: '2'
services:
sogo:
# if you want to build your own image
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:
# 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