Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alpha2 #1

Merged
merged 19 commits into from
Jan 26, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
ralph docker-compose integration
  • Loading branch information
mwalkowski committed Jan 7, 2020
commit f086948815dfd8351aab005b211a638e8bd919cf
5 changes: 5 additions & 0 deletions demo/.env
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ POSTGRES_USER=user
POSTGRES_PASSWORD=password
RABBITMQ_DEFAULT_USER=vmc
RABBITMQ_DEFAULT_PASS=test_vmc

MYSQL_ROOT_PASSWORD=ralph_ng
MYSQL_DATABASE=ralph_ng
MYSQL_USER=ralph_ng
MYSQL_PASSWORD=ralph_ng
7 changes: 6 additions & 1 deletion demo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ define compose-file
-f $(COMPOSE)/docker-compose.$(1).yml
endef

VMC = $(call compose-file,postgresql) $(call compose-file,elastalert) $(call compose-file,hive) $(call compose-file,elk) $(call compose-file,vmc)
VMC = $(call compose-file,postgresql) \
$(call compose-file,elastalert) \
$(call compose-file,hive) \
$(call compose-file,elk) \
$(call compose-file,vmc) \
$(call compose-file,ralph)

.PHONY: all

Expand Down
51 changes: 51 additions & 0 deletions demo/compose/docker-compose.ralph.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
version: '3.3'

services:
web:
image: allegro/ralph:latest
volumes:
- ralph_media:/var/local/ralph/media
- ralph_static:/usr/share/ralph/static
depends_on:
- mariadb
- redis
- nginx
environment:
DATABASE_NAME: ${MYSQL_DATABASE}
DATABASE_USER: ${MYSQL_USER}
DATABASE_PASSWORD: ${MYSQL_PASSWORD}
DATABASE_HOST: mariadb
REDIS_HOST: redis
REDIS_PASSWORD: ""
REDIS_PORT: 6379
REDIS_DB: 0

nginx:
image: allegro/ralph-static-nginx:latest
restart: always
ports:
- "8081:80"
volumes:
- ralph_media:/opt/media

mariadb:
image: mariadb:${MARIADB_VERSION}
env_file: ../.env
volumes:
- mariadb-data:/var/lib/mysql

inkpy:
image: allegro/inkpy:latest
environment:
REDIS_HOST: redis
REDIS_PASSWORD: ""
REDIS_PORT: 6379
REDIS_DB: 0

volumes:
ralph_media:
driver: local
ralph_static:
driver: local
mariadb-data:
driver: local