Pretix, verified and packaged by Elestio
306
Pretix is a highly sophisticated ticketing software that is all-in-one: Online shop, box office and ticket outlets with focus on privacy and security.
Deploy a fully managed pretix on elest.io if you want automated backups, reverse proxy with SSL termination, firewall, automated OS & Software updates, and a team of Linux experts and open source enthusiasts to ensure your services are always safe, and functional.
You can deploy it easily with the following command:
git clone https://github.com/elestio-examples/pretix.git
Copy the .env file from tests folder to the project directory
cp ./tests/.env ./.env
Edit the .env file with your own values.
Run the project with the following command
docker-compose up -d
You can access the Web UI at: http://your-domain:27712
Here are some example snippets to help you get started creating a container.
version: "3"
services:
pretix:
image: "elestio4test/pretix:${SOFTWARE_VERSION_TAG}"
restart: always
depends_on:
- db
- redis
volumes:
- ./etc/pretix:/etc/pretix
- pretix-data:/data
- ./scripts/0001_initial.py:/pretix/src/pretix/base/migrations/0001_initial.py
- ./scripts/0001_squashed_0028_auto_20160816_1242.py:/pretix/src/pretix/base/migrations/0001_squashed_0028_auto_20160816_1242.py
ports:
- "172.17.0.1:27712:80"
db:
image: elestio/postgres:15
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=pretix
volumes:
- ./postgres:/var/lib/postgresql/data
ports:
- 172.17.0.1:59313:5432
redis:
image: redis:latest
restart: always
pgadmin4:
image: dpage/pgadmin4:latest
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: ${ADMIN_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${ADMIN_PASSWORD}
PGADMIN_LISTEN_PORT: 8080
ports:
- "172.17.0.1:42511:8080"
volumes:
- ./servers.json:/pgadmin4/servers.json
volumes:
pretix-data:
driver: local
driver_opts:
type: none
device: ${PWD}/data
o: bind
The Elestio Pretix Docker image sends the container logs to stdout. To view the logs, you can use the following command:
docker-compose logs -f
To stop the stack you can use the following command:
docker-compose down
To make backup and restore operations easier, we are using folder volume mounts. You can simply stop your stack with docker-compose down, then backup all the files and subfolders in the folder near the docker-compose.yml file.
Creating a ZIP Archive For example, if you want to create a ZIP archive, navigate to the folder where you have your docker-compose.yml file and use this command:
zip -r myarchive.zip .
Restoring from ZIP Archive To restore from a ZIP archive, unzip the archive into the original folder using the following command:
unzip myarchive.zip -d /path/to/original/folder
Starting Your Stack Once your backup is complete, you can start your stack again with the following command:
docker-compose up -d
That's it! With these simple steps, you can easily backup and restore your data volumes using Docker Compose.
Content type
Image
Digest
sha256:d9cf2b483…
Size
607.3 MB
Last updated
almost 3 years ago
docker pull elestio4test/pretix