-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (41 loc) · 945 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
version: "3"
services:
nginx:
image: nginx:latest
build:
context: ./nginx
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
restart: always
server:
environment:
- CLIENT_ID=${REACT_APP_CLIENT_ID}
- CLIENT_SECRET=${REACT_APP_CLIENT_SECRET}
- REDIRECT_URI=${REACT_APP_PUBLIC_URL}
build:
context: ./server
ports:
- "8001:8001"
restart: always
client:
build:
context: ./client
args:
REACT_APP_PUBLIC_URL: ${REACT_APP_PUBLIC_URL}
REACT_APP_CLIENT_ID: ${REACT_APP_CLIENT_ID}
ports:
- "8000:8000"
restart: always
model:
environment:
- SPOTIFY_CLIENT_ID=${REACT_APP_CLIENT_ID}
- SPOTIFY_CLIENT_SECRET=${REACT_APP_CLIENT_SECRET}
build:
context: ./model
ports:
- "8002:8002"
deploy:
replicas: 3
restart: always