update docker hostnames to avoid conflicts when sharing network
This commit is contained in:
parent
ec3ab8b48b
commit
2d66b0a200
@ -2,6 +2,7 @@ version: '3.9'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
|
hostname: heartbeats-web
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: ./web/Dockerfile
|
dockerfile: ./web/Dockerfile
|
||||||
@ -14,12 +15,14 @@ services:
|
|||||||
- BASE_URL=http://localhost:8464
|
- BASE_URL=http://localhost:8464
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
|
hostname: heartbeats-redis
|
||||||
image: redis
|
image: redis
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- './redis-data:/data'
|
- './redis-data:/data'
|
||||||
|
|
||||||
populater:
|
populater:
|
||||||
|
hostname: heartbeats-populater
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: ./populater/Dockerfile
|
dockerfile: ./populater/Dockerfile
|
||||||
|
2
populater/src/app.py
Executable file → Normal file
2
populater/src/app.py
Executable file → Normal file
@ -16,7 +16,7 @@ CLIENT_SECRET = os.environ.get('CLIENT_SECRET', None)
|
|||||||
if CLIENT_SECRET is None:
|
if CLIENT_SECRET is None:
|
||||||
raise ValueError("CLIENT_SECRET cannot be None, set using environment variable")
|
raise ValueError("CLIENT_SECRET cannot be None, set using environment variable")
|
||||||
|
|
||||||
db = Db('redis', 6379, 0, CLIENT_ID, CLIENT_SECRET)
|
db = Db('heartbets-redis', 6379, 0, CLIENT_ID, CLIENT_SECRET)
|
||||||
|
|
||||||
|
|
||||||
def get_args():
|
def get_args():
|
||||||
|
@ -28,7 +28,7 @@ BASE_URL = os.environ.get('BASE_URL', None)
|
|||||||
if BASE_URL is None:
|
if BASE_URL is None:
|
||||||
raise ValueError("BASE_URL cannot be None, set using environtment variable")
|
raise ValueError("BASE_URL cannot be None, set using environtment variable")
|
||||||
|
|
||||||
db = Db('redis', 6379, 0, CLIENT_ID, CLIENT_SECRET)
|
db = Db('heartbeats-redis', 6379, 0, CLIENT_ID, CLIENT_SECRET)
|
||||||
|
|
||||||
SPOTIFY_AUTHORIZE_ENDPOINT = os.environ.get('SPOTIFY_AUTHORIZE_ENDPOINT', 'https://accounts.spotify.com/authorize?')
|
SPOTIFY_AUTHORIZE_ENDPOINT = os.environ.get('SPOTIFY_AUTHORIZE_ENDPOINT', 'https://accounts.spotify.com/authorize?')
|
||||||
SPOTIFY_TOKEN_ENDPOINT = os.environ.get('SPOTIFY_AUTHORIZE_ENDPOINT', 'https://accounts.spotify.com/api/token')
|
SPOTIFY_TOKEN_ENDPOINT = os.environ.get('SPOTIFY_AUTHORIZE_ENDPOINT', 'https://accounts.spotify.com/api/token')
|
||||||
|
Loading…
Reference in New Issue
Block a user