-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.prod.yml
49 lines (45 loc) · 1.43 KB
/
docker-compose.prod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: '3.9'
networks:
caddywork:
external: true
services:
db:
image: postgres:15
container_name: spotify-liked-songs-bkp-db
restart: unless-stopped
environment:
POSTGRES_PASSWORD: spotify-liked-songs-bkp
POSTGRES_USER: spotify-liked-songs-bkp
POSTGRES_DB: spotify-liked-songs-bkp
volumes:
- ./db:/var/lib/postgresql/data
networks:
- default
server:
image: victor141516/spotify-liked-songs-bkp:latest
build: .
container_name: spotify-liked-songs-bkp-server
restart: unless-stopped
networks:
- caddywork
- default
env_file: $HOME/secrets/spotify-liked-songs-bkp/env
environment:
- MODE=server
- PORT=3000
- SPOTIFY_API_AUTH_REDIRECT_URI=https://liked.party/auth/callback
- SPOTIFY_API_REVOKE_REDIRECT_URI=https://liked.party/auth/callback?revoke=true
- APP_REDIRECT_URI=https://liked.party/callback
- DATABASE_URI=postgres://spotify-liked-songs-bkp:spotify-liked-songs-bkp@db:5432/spotify-liked-songs-bkp
worker:
image: victor141516/spotify-liked-songs-bkp:latest
build: .
container_name: spotify-liked-songs-bkp-worker
restart: unless-stopped
networks:
- default
env_file: $HOME/secrets/spotify-liked-songs-bkp/env
environment:
- MODE=worker
- DATABASE_URI=postgres://spotify-liked-songs-bkp:spotify-liked-songs-bkp@db:5432/spotify-liked-songs-bkp
- RUN_INTERVAL=60