Skip to content

Instantly share code, notes, and snippets.

@metehus
Created July 7, 2022 04:15
Show Gist options
  • Save metehus/7f882b96ea72484d347f8d6450709206 to your computer and use it in GitHub Desktop.
Save metehus/7f882b96ea72484d347f8d6450709206 to your computer and use it in GitHub Desktop.
Docker compose of content managet
version: '3.3'
services:
database:
image: postgres:13
environment:
POSTGRES_PASSWORD: password
volumes:
- resources_database:/var/lib/postgresql/data
networks:
- default
- monitoring
logging:
driver: json-file
manager:
image: musicorum/resource-manager:latest
environment:
CORS_ORIGINS: '*'
DATABASE_URL: postgres://postgres:password@resources_database:5432/resources
LASTFM_KEY: '$LASTFM_KEY'
PORT: '80'
REDIS_HOST: resources_redis
REDIS_PASS: password
REDIS_PORT: '6379'
SPOTIFY_ID: '$SPOTIFY_ID'
SPOTIFY_SECRET: '$SPOTIFY_SECRET'
volumes:
- /home/musicorum/configs/resource_manager.json:/app/config.json
networks:
- internal_resources
- monitoring
- nginx
- default
logging:
driver: json-file
redis:
image: redis:latest
command:
- redis-server
- --requirepass
- password
networks:
- default
logging:
driver: json-file
networks:
default:
driver: overlay
internal_resources:
external: true
monitoring:
external: true
nginx:
external: true
volumes:
resources_database:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment