41 lines
913 B
YAML
41 lines
913 B
YAML
|
|
version: '2'
|
|
|
|
services:
|
|
sogo:
|
|
build:
|
|
context: .
|
|
args:
|
|
# replace by your desired version
|
|
version: 5.10.0
|
|
# links:
|
|
# - db
|
|
volumes:
|
|
# replace by your own file
|
|
- ./sogo.conf:/etc/sogo/sogo.conf
|
|
environment:
|
|
- "TZ=Europe/Berlin"
|
|
db:
|
|
image: postgres:17.6
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: postgres
|
|
# for debug purpose only: reach the database from outside
|
|
#ports:
|
|
# - "5432"
|
|
# memcached:
|
|
# image: memcached:1.6-alpine
|
|
nginx:
|
|
image: nginx
|
|
links:
|
|
- sogo
|
|
volumes_from:
|
|
# you will be able to serve assets from sogo image
|
|
- sogo:ro
|
|
ports:
|
|
# publish on port 8003
|
|
- "8003:80"
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|