-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
24 lines (21 loc) · 733 Bytes
/
docker-compose.yml
File metadata and controls
24 lines (21 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# For hosting with Traefik
# Create a .env in root directory with Spotify App Credentials.
# Docker will pick runtime environment vars from .env automatically
version: "3.7"
services:
spotify-cards:
build: .
restart: always
networks:
- proxy
env_file: .env
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.routers.spotifycards-secure.entrypoints=websecure"
- "traefik.http.routers.spotifycards-secure.rule=Host(`spotify-cards.prj.fossian.com`)"
- "traefik.http.routers.spotifycards-secure.service=spotifycards-service"
- "traefik.http.services.spotifycards-service.loadbalancer.server.port=3000"
networks:
proxy:
external: true