-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (52 loc) · 1.13 KB
/
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
49
50
51
52
53
54
55
56
57
version: '3.6'
x-build-args: &build_args
INSTALL_NODE_VERSION: 16.13.2
INSTALL_YARN_VERSION: 1.22.4
services:
flask:
build:
context: .
dockerfile: Dockerfile
args:
<<: *build_args
image: sprout
env_file: .env
# Declaring these variables allows the host to pass down these variables
# when not defined in .env since they might be defined more globally accross projects
environment:
- PLENTY_API_KEY
- PLENTY_API_SECRET
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
command: pipenv run flask run --host=0.0.0.0
ports:
- 8000:8000
depends_on:
- redis
react:
build:
context: .
dockerfile: Dockerfile
args:
<<: *build_args
image: sprout
env_file: .env
command: yarn --cwd frontend/client start --host 0.0.0.0
tty: true
environment:
SPROUT_HOSTNAME: flask
HYPOCOTYL_HOSTNAME: flask
ports:
- 3000:3000
depends_on:
- flask
redis:
image: redis:5.0-alpine
restart: always
expose:
- 6379
ports:
- 6379:6379
volumes:
dev-db:
node_modules: