-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (46 loc) · 988 Bytes
/
docker-compose.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
version: '3.7'
services:
postgres:
image: postgres:11
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: gorm
PGPASSWORD: password
volumes:
- postgres:/var/lib/postgresql/data
frontend:
build:
context: frontend/
# For development only build up to build-stage
backend:
build:
context: backend/
target: build-stage
depends_on:
- postgres
volumes:
- './backend:/app'
environment:
- SPOTIFY_ID=e9eb61d2a082412caa493f4c9ef86774
- SPOTIFY_SECRET=681d8d66ad6945faa5f3b3ca9ac5559e
omnidb: # workbench for inspecting database
image: taivokasper/omnidb
ports:
- '9876:8080'
- '25482:25482' # Web socket
volumes:
- omnidb:/etc/omnidb
proxy:
hostname: proxy
build: proxy/
ports:
- 80:80
- 443:443
depends_on:
- backend
- frontend
volumes:
postgres:
omnidb: