-
Notifications
You must be signed in to change notification settings - Fork 10
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
base: main
Are you sure you want to change the base?
Conversation
norbusan
commented
Jun 11, 2024
- 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: |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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