a docker compose file needed #1835
Closed
Vikaskumargd
started this conversation in
Ideas and Issue Triage
Replies: 1 comment 4 replies
-
|
@Vikaskumargd Fizzy is a single-container project, there aren't any dependencies to orchestrate with Docker Compose. If you want to run it via compose, this one should work: services:
web:
image: ghcr.io/basecamp/fizzy:main
ports:
- "80:80"
- "443:443"
environment:
- RAILS_ENV=production
- DATABASE_ADAPTER=sqlite
- SOLID_QUEUE_IN_PUMA=true
- SECRET_KEY_BASE=${SECRET_KEY_BASE}
- VAPID_PRIVATE_KEY=${VAPID_PRIVATE_KEY}
- VAPID_PUBLIC_KEY=${VAPID_PUBLIC_KEY}
- SSL_DOMAIN=${SSL_DOMAIN}
volumes:
- fizzy_storage:/rails/storage
- thruster_certs:/rails/.thruster
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3006/up"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
volumes:
fizzy_storage:
thruster_certs:If you really want, you can split out SolidQueue into a separate container: services:
web:
image: ghcr.io/basecamp/fizzy:main
ports:
- "80:80"
- "443:443"
environment:
- RAILS_ENV=production
- SECRET_KEY_BASE=${SECRET_KEY_BASE}
- VAPID_PRIVATE_KEY=${VAPID_PRIVATE_KEY}
- VAPID_PUBLIC_KEY=${VAPID_PUBLIC_KEY}
- DATABASE_ADAPTER=sqlite
- SSL_DOMAIN=${SSL_DOMAIN}
- ACME_DIRECTORY=${ACME_DIRECTORY:-https://acme-v02.api.letsencrypt.org/directory}
volumes:
- fizzy_storage:/rails/storage
- thruster_certs:/rails/.thruster
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3006/up"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
jobs:
image: ghcr.io/basecamp/fizzy:main
command: bin/jobs
environment:
- RAILS_ENV=production
- SECRET_KEY_BASE=${SECRET_KEY_BASE}
- VAPID_PRIVATE_KEY=${VAPID_PRIVATE_KEY}
- VAPID_PUBLIC_KEY=${VAPID_PUBLIC
- DATABASE_ADAPTER=sqlite
volumes:
- fizzy_storage:/rails/storage
volumes:
fizzy_storage:
thruster_certs: |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A docker compose file for easy self hosting
Beta Was this translation helpful? Give feedback.
All reactions