|
|
@ -10,14 +10,15 @@ services:
|
|
|
|
ports:
|
|
|
|
ports:
|
|
|
|
- 127.0.0.1:8080:80
|
|
|
|
- 127.0.0.1:8080:80
|
|
|
|
depends_on:
|
|
|
|
depends_on:
|
|
|
|
- api
|
|
|
|
- quotes-api
|
|
|
|
|
|
|
|
- comments-api
|
|
|
|
- cms
|
|
|
|
- cms
|
|
|
|
|
|
|
|
|
|
|
|
# API service with /data/quotes mounted as database storage
|
|
|
|
# Quotes API service with /data/quotes mounted as database storage
|
|
|
|
# SECRET_KEY is needed for API key validation
|
|
|
|
# SECRET_KEY is needed for API key validation
|
|
|
|
api:
|
|
|
|
quotes-api:
|
|
|
|
build:
|
|
|
|
build:
|
|
|
|
context: ./api
|
|
|
|
context: ./quotes-api
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- /data/quotes:/quotes
|
|
|
|
- /data/quotes:/quotes
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
@ -26,6 +27,21 @@ services:
|
|
|
|
expose:
|
|
|
|
expose:
|
|
|
|
- 5000
|
|
|
|
- 5000
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Twitch comments API service with /data/comments mounted as database storage
|
|
|
|
|
|
|
|
# TWITCH_CLIENT_ID and TWITCH_CHANNEL_ID are needed for Twitch API access
|
|
|
|
|
|
|
|
# and synchronization
|
|
|
|
|
|
|
|
comments-api:
|
|
|
|
|
|
|
|
build:
|
|
|
|
|
|
|
|
context: ./comments-api
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
|
|
|
- /data/comments:/comments
|
|
|
|
|
|
|
|
environment:
|
|
|
|
|
|
|
|
- SQLALCHEMY_DATABASE_URI=sqlite:////comments/comments.db
|
|
|
|
|
|
|
|
- TWITCH_CLIENT_ID=__TWITCH_CLIENT_ID__
|
|
|
|
|
|
|
|
- TWITCH_CHANNEL_ID=__TWITCH_CHANNEL_ID__
|
|
|
|
|
|
|
|
expose:
|
|
|
|
|
|
|
|
- 5000
|
|
|
|
|
|
|
|
|
|
|
|
# CMS service with /data/grav mounted as user data storage
|
|
|
|
# CMS service with /data/grav mounted as user data storage
|
|
|
|
cms:
|
|
|
|
cms:
|
|
|
|
build:
|
|
|
|
build:
|
|
|
|