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

Docker Compose file. #1

Closed
bryceprutsos opened this issue Oct 8, 2022 · 1 comment
Closed

Docker Compose file. #1

bryceprutsos opened this issue Oct 8, 2022 · 1 comment

Comments

@bryceprutsos
Copy link

bryceprutsos commented Oct 8, 2022

I am not sure if you had a docker-compose.yml, but I have included one and also the volumes should have a ./cherry_data_v1:/data

version: '3.3' services: cherry: container_name: cherry volumes: - './cherry_data_v1:/data' ports: - '8000:8000' environment: - JWT_SECRET=Secret-here - ENABLE_REGISTRATION=1 image: haishanh/cherry

version: '3.3'
services:
cherry:
container_name: cherry
volumes:
- './cherry_data_v1:/data'
ports:
- '8000:8000'
environment:
- JWT_SECRET=Secret-here
- ENABLE_REGISTRATION=1
image: haishanh/cherry

@haishanh
Copy link
Owner

haishanh commented Oct 8, 2022

Not really think a docker-compose file is needed, since Cherry doesn't rely on other services. A reverse proxy like nginx is somehow needed, but it's only needed for "production". I may introduce docker compose examples when there are some integration features worth demo. Thanks for the advice though @bryceprutsos

Both cherry_data_v1:/data and ./cherry_data_v1:/data should work. The 1st one is called named volumes the 2nd is bind mounts.

@haishanh haishanh closed this as completed Oct 8, 2022
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

No branches or pull requests

2 participants