Last active
May 18, 2018 22:55
-
-
Save rh0dium/f36df3f87f58368a2ff4fefbb0125db9 to your computer and use it in GitHub Desktop.
A typical envision stack
This file contains 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.1" | |
services: | |
app: | |
image: icmanage1/envision:envision-latest | |
links: | |
- db | |
- perforce | |
- rabbitmq | |
- splunk | |
env_file: | |
- .env | |
environment: | |
DJANGO_SETTINGS_MODULE: 'settings.dev_docker' | |
DJANGO_MANAGEPY_COLLECTSTATIC: 'on' | |
DJANGO_MANAGEPY_MIGRATE: 'on' | |
SKIP_RABBITMQ: 'on' | |
SKIP_SQL: 'off' | |
ports: | |
- 8001:8001 | |
networks: | |
- main | |
depends_on: | |
- db | |
command: uwsgi --ini /data/app/config/docker/app/uwsgi.ini | |
volumes: | |
- uwsgi_socket:/var/run/uwsgi:rw | |
- app_static:/data/app/static:rw | |
celery: | |
image: icmanage1/envision:envision-latest | |
links: | |
- db | |
- rabbitmq | |
- perforce | |
- splunk | |
env_file: | |
- .env | |
environment: | |
DJANGO_SETTINGS_MODULE: 'settings.dev_docker' | |
DJANGO_MANAGEPY_COLLECTSTATIC: 'off' | |
DJANGO_MANAGEPY_MIGRATE: 'off' | |
SKIP_RABBITMQ: 'off' | |
SKIP_SQL: 'off' | |
networks: | |
- main | |
depends_on: | |
- db | |
- rabbitmq | |
working_dir: /data/app | |
command: watchmedo auto-restart --patterns='*.py' --recursive -- celery worker -A celery_app -E -B | |
volumes: | |
- app_static:/data/app/static:rw | |
- app_media:/data/app/media:rw | |
journal_parser: | |
image: icmanage1/envision:journal_parser-latest | |
links: | |
- db | |
- perforce | |
env_file: | |
- .env | |
networks: | |
- main | |
depends_on: | |
- db | |
- perforce | |
working_dir: /data/app | |
volumes: | |
- perforce_data:/var/lib/perforce | |
- db_run:/var/run/mysqld | |
nginx: | |
image: icmanage1/envision:nginx-latest | |
volumes: | |
- uwsgi_socket:/var/run/uwsgi:rw | |
- app_static:/static:ro | |
depends_on: | |
- app | |
ports: | |
- 80:80 | |
links: | |
- app:app | |
networks: | |
- main | |
perforce: | |
image: icmanage1/envision:perforce-latest | |
networks: | |
main: | |
ipv4_address: 172.19.0.16 | |
env_file: | |
- .env | |
ports: | |
- 1666:1666 | |
volumes: | |
- perforce_data:/var/lib/perforce | |
db: | |
restart: always | |
image: icmanage1/envision:mariadb-latest | |
volumes: | |
- db_data:/var/lib/mysql | |
- db_run:/var/run/mysqld | |
env_file: | |
- .env | |
ports: | |
- 3306:3306 | |
networks: | |
- main | |
memcached: | |
image: memcached:alpine | |
ports: | |
- 11211:11211 | |
networks: | |
- main | |
rabbitmq: | |
restart: always | |
image: rabbitmq:3.7-rc-management | |
volumes: | |
- rabbitmq_data:/var/lib/rabbitmq | |
env_file: | |
- .env | |
expose: | |
- "5672" | |
ports: | |
- 15672:15672 | |
- 5672:5672 | |
networks: | |
- main | |
splunk: | |
image: icmanage1/envision:splunk-latest | |
volumes: | |
- splunk_data:/opt/splunk/var | |
env_file: | |
- .env | |
networks: | |
- main | |
expose: | |
- 9997 | |
- 8088 | |
- 8089 | |
- 1514 | |
ports: | |
- 8000:8000 | |
- 8089:8089 | |
networks: | |
main: | |
driver: bridge | |
ipam: | |
config: | |
- subnet: 172.19.0.0/24 | |
volumes: | |
db_data: | |
db_run: | |
perforce_data: | |
uwsgi_socket: | |
app_static: | |
app_media: | |
rabbitmq_data: | |
splunk_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment