chore: 🔧 add prod Docker compose with sample config

main
RaviAnand Mohabir 10 months ago
parent 22759759fb
commit 62f918f33a

4
.gitignore vendored

@ -25,3 +25,7 @@ go.work
# Configuration files
config.yml
.env
# Build binary
listy

@ -0,0 +1,8 @@
spotify:
clientId: <SPOTIFY_CLIENT_ID>
clientSecret: <SPOTIFY_CLIENT_SECRET>
server:
sessionKey: <RANDOM_STRING_VALUE>
# set these values if server is accessed via a domain
# scheme: https
# host: listy.example.com

@ -0,0 +1,29 @@
version: "3.1"
services:
mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USERNAME:-listy}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD:-listypass123}
ports:
- 27017:27017
volumes:
- ./.mongo:/data/db
listy:
image: gitea.ravianand.me/Dan6erbond/listy
command: ["/listy", "server", "run"]
environment:
MONGODB_URI: mongodb://${MONGO_USERNAME:-listy}:${MONGO_PASSWORD:-listypass123}@mongodb:27017
volumes:
- config.example.yml:/etc/listy/config.yml
ports:
- 5001:5001
listy-sync:
image: gitea.ravianand.me/Dan6erbond/listy
command: ["/listy", "sync", "-r", "5m"]
environment:
MONGODB_URI: mongodb://${MONGO_USERNAME:-listy}:${MONGO_PASSWORD:-listypass123}@mongodb:27017
volumes:
- config.example.yml:/etc/listy/config.yml
Loading…
Cancel
Save