-
-
Save calsaviour/d556515b19ff402490336529807f3b3a to your computer and use it in GitHub Desktop.
Example docker-compose file for conversence/idealoom:latest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3" | |
| networks: | |
| my_net: | |
| volumes: | |
| idealoom_static: | |
| pgdata: | |
| redisdata: | |
| services: | |
| redis: | |
| image: redis:3.2-alpine | |
| volumes: | |
| - redisdata:/data | |
| networks: | |
| - my_net | |
| memcached: | |
| image: memcached:1.5-alpine | |
| networks: | |
| - my_net | |
| database: | |
| image: postgres:12.1-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