-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yaml
56 lines (55 loc) · 1.28 KB
/
compose.yaml
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
50
51
52
53
54
55
56
services:
redis:
image: "redis/redis-stack:latest"
ports:
- '6379:6379'
- '8001:8001'
networks:
proxy:
aliases:
- redis
api:
build:
context: backend
target: builder
# flask requires SIGINT to stop gracefully
# (default stop signal from Compose is SIGTERM)
stop_signal: SIGINT
restart: always
ports:
- '4000:4000'
volumes:
- ./backend:/code
environment:
- REDIS_URL=redis://redis:6379
- MONGO_URL='mongodb://root:example@mongo:27017/'
- FLASK_CONFIG=development
- FLASK_ENV=development
- APP_SETTINGS=handsfree.config.DevelopmentConfig
networks:
proxy:
depends_on:
- redis
client:
build:
context: ./frontend
dockerfile: Dockerfile
volumes:
- './frontend:/usr/src/app'
- '/usr/src/app/node_modules'
ports:
- 3000:3000
env_file:
- .env
environment:
- NODE_ENV=development
- CHOKIDAR_USEPOLLING=true
- REACT_APP_SERVICE_URL=http://localhost:3000
- REACT_APP_AZURE_TRANSCRIBE_SUBSCRIPTION_KEY=${AZURE_TRANSCRIBE_SUBSCRIPTION_KEY}
- REACT_APP_AZURE_TRANSCRIBE_REGION=${AZURE_TRANSCRIBE_REGION}
depends_on:
- api
networks:
proxy:
networks:
proxy: