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

Changes to the docker setup #15

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Changes to the docker setup #15

wants to merge 2 commits into from

Conversation

norbusan
Copy link
Member

  • use separate databases for ticket/talk
  • rename eventyay-tickets to eventyay-ticket
  • use different redis db for ticket/talk celery backend/broker
  • rename docker container names

- use separate databases for ticket/talk
- rename eventyay-tickets to eventyay-ticket
- use different redis db for ticket/talk celery backend/broker
- rename docker container names
@@ -1,6 +1,6 @@
version: '3'
services:
pretalx:
eventyay-talk:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename service name

container_name: eventyay-tickets
eventyay-ticket:
image: eventyay/eventyay-ticket:development
container_name: eventyay-ticket
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename service name, and use singular ticket name for docker image
NEEDS CHANGES in the deployment

@@ -41,10 +41,11 @@ services:
restart: unless-stopped
volumes:
- db:/var/lib/postgresql/data
- ./docker-postgresql-multiple-databases:/docker-entrypoint-initdb.d
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

environment:
POSTGRES_USER: postgres_db_user_changeme
POSTGRES_PASSWORD: postgres_db_pwd_changeme
POSTGRES_DB: eventyay_db
POSTGRES_MULTIPLE_DATABASES: eventyay_db,eventyay_ticket_db
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

define two databases, keep the one used for talks as is

@@ -53,7 +54,7 @@ services:

redis:
image: redis:latest
container_name: pretalx-redis
container_name: redis
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use the correct redis service name

backend = redis://pretalx-redis/1
broker = redis://pretalx-redis/2
backend = redis://redis/1
broker = redis://redis/2
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use correct redis service name

backend=redis://redis/1
broker=redis://redis/2
backend=redis://redis/3
broker=redis://redis/4
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use different redis database for ticket celery broker and backend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant