Create a gist now

Instantly share code, notes, and snippets.

Embed
Example docker-compose file for conversence/idealoom:latest
version: "3"
networks:
my_net:
volumes:
idealoom_static:
pgdata:
redisdata:
services:
redis:
image: redis:3.0-alpine
volumes:
- redisdata:/data
networks:
- my_net
memcached:
image: memcached:1.4-alpine
networks:
- my_net
database:
image: postgres:9.5.5-alpine
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- my_net
web:
image: nginx:1.12-alpine
ports:
- "8080:80"
volumes:
- .:/opt/default_config
- idealoom_static:/opt/idealoom_static
environment:
http_upgrade: '$http_upgrade'
depends_on:
- idealoom1
command: /bin/sh -c "cp /opt/default_config/nginx_*.conf /etc/nginx/conf.d && nginx -g 'daemon off;'"
networks:
my_net:
aliases:
- idealoom.example.com
idealoom1:
image: idealoom:latest
volumes:
- .:/var/docker_data
- idealoom_static:/opt/idealoom_static
environment:
DOCKER_RC: /var/docker_data/idealoom1.rc
BUILDING_DOCKER: "false"
depends_on:
- redis
- elasticsearch
command: sh -c 'cd /opt/idealoom; /etc/init.d/ssh start ; chown idealoom_user /opt/idealoom_static; . venv/bin/activate ; sleep 5; env BUILDING_DOCKER=false fab -c /var/docker_data/idealoom1.rc docker_startup ; tail -f /dev/null'
networks:
- my_net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment