2016-12-23 21:31:44 -08:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
app:
|
2017-06-14 00:40:34 -07:00
|
|
|
image: gcr.io/pod-sync/app:latest
|
2017-02-11 00:40:50 -08:00
|
|
|
container_name: app
|
2017-01-04 17:57:05 -08:00
|
|
|
restart: always
|
2017-01-04 11:32:04 -08:00
|
|
|
ports:
|
2017-01-20 19:22:02 -08:00
|
|
|
- 5001
|
2016-12-23 21:31:44 -08:00
|
|
|
environment:
|
2017-08-22 16:22:13 -07:00
|
|
|
- REDIS_CONNECTION_URL=redis://redis
|
2017-10-30 17:26:46 -07:00
|
|
|
- POSTGRES_CONNECTION_URL={POSTGRES_CONNECTION_URL}
|
2017-10-30 17:39:42 -07:00
|
|
|
# https://console.developers.google.com/project/_/apiui/credential/serviceaccount
|
2017-10-31 14:22:48 -07:00
|
|
|
- GOOGLE_APPLICATION_CREDENTIALS=/google-credentials.json
|
2017-08-20 20:28:08 -07:00
|
|
|
- YOUTUBE_API_KEY={YOUTUBE_API_KEY}
|
|
|
|
- VIMEO_API_KEY={VIMEO_API_KEY}
|
|
|
|
- PATREON_CLIENT_ID={PATREON_CLIENT_ID}
|
|
|
|
- PATREON_SECRET={PATREON_SECRET}
|
2017-10-24 16:57:59 -07:00
|
|
|
- PATREON_REDIRECT_URL=https://podsync.net/patreon
|
2017-10-26 12:45:10 -07:00
|
|
|
- PATREON_WEBHOOKS_SECRET={PATREON_WEBHOOKS_SECRET}
|
2017-08-20 20:28:08 -07:00
|
|
|
- COOKIE_SECRET={COOKIE_SECRET}
|
2017-11-01 13:04:36 -07:00
|
|
|
- GIN_MODE=release
|
2017-10-31 14:22:48 -07:00
|
|
|
volumes:
|
|
|
|
- {PATH_TO_GOOGLE_CREDENTIALS_FILE_FOR_USE_OUTSIDE_GOOGLE_CLOUD}:/google-credentials.json
|
2017-02-11 00:30:16 -08:00
|
|
|
ytdl:
|
2017-06-14 00:40:34 -07:00
|
|
|
image: gcr.io/pod-sync/ytdl:latest
|
2017-02-11 00:40:50 -08:00
|
|
|
container_name: ytdl
|
2017-02-11 00:30:16 -08:00
|
|
|
restart: always
|
|
|
|
ports:
|
2017-06-14 00:40:34 -07:00
|
|
|
- 5002
|
|
|
|
environment:
|
2017-08-20 20:28:08 -07:00
|
|
|
- METADATA_URL=http://app:5001/api/metadata/{feed_id}
|
2016-12-23 21:31:44 -08:00
|
|
|
redis:
|
|
|
|
image: redis
|
2017-02-11 00:40:50 -08:00
|
|
|
container_name: redis
|
2017-06-14 00:40:34 -07:00
|
|
|
command: redis-server --appendonly no --save 900 1 --save 300 10 --save 60 10000
|
2017-01-04 17:57:05 -08:00
|
|
|
restart: always
|
2016-12-23 21:31:44 -08:00
|
|
|
volumes:
|
2017-01-20 19:22:02 -08:00
|
|
|
- /data/redis:/data
|
|
|
|
nginx:
|
2018-07-05 23:14:47 -07:00
|
|
|
image: umputun/nginx-le:latest
|
2017-02-11 00:40:50 -08:00
|
|
|
container_name: nginx
|
2017-01-20 19:22:02 -08:00
|
|
|
restart: always
|
|
|
|
ports:
|
2017-10-24 16:57:59 -07:00
|
|
|
- 80:80
|
|
|
|
- 443:443
|
|
|
|
environment:
|
|
|
|
- TZ=America/Los_Angeles
|
|
|
|
- LETSENCRYPT=true
|
2018-07-05 23:14:47 -07:00
|
|
|
- LE_EMAIL=pavlenko.maksym@gmail.com
|
2017-10-24 16:57:59 -07:00
|
|
|
- LE_FQDN=podsync.net,www.podsync.net
|
|
|
|
volumes:
|
|
|
|
- /data/ssl:/etc/nginx/ssl
|
2018-07-05 23:14:47 -07:00
|
|
|
- /data/podsync.conf:/etc/nginx/service.conf
|