-
Notifications
You must be signed in to change notification settings - Fork 34
/
docker-compose.yml
93 lines (89 loc) · 2.05 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: "3.2"
services:
redis:
image: redis
ports:
- 6379:6379
db:
image: postgres
ports:
- 5432:5432
environment:
POSTGRES_USER: docker
POSTGRES_PASSWORD: docker
POSTGRES_DB: docker
storage:
image: fsouza/fake-gcs-server
ports:
- 4443:4443
web:
build: ./api
command: python ./api/run.py runserver -h 0.0.0.0 -p 5000
volumes:
- .:/code
- ~/.config/gcloud:/root/.config/gcloud
ports:
- 5000:5000
links:
- db
- storage
- redis
environment:
DEBUG: "True"
SECRET_KEY: __filler__
SMTP_USERNAME: __filler__
SMTP_PASSWORD: __filler__
SMTP_SENDER_NAME: __filler__
SMTP_SENDER_EMAIL: __filler__
SMTP_HOST: __filler__
SMTP_PORT: 587
GCP_CLIENT_ID: __filler__
GCP_CLIENT_EMAIL: __filler__
GCP_PRIVATE_KEY_ID: __filler__
GCP_PRIVATE_KEY: dummy
GCP_PROJECT_NAME: __filler__
GCP_BUCKET_NAME: __filler__
FILE_SIZE_LIMIT: 52428800
BOABAB_HOST: http://localhost:8080
webapp:
build: ./webapp
command: yarn start
volumes:
- ./webapp:/usr/src/app
- ./webapp:/webapp
ports:
- "8080:3000"
environment:
- NODE_ENV=development
- CHOKIDAR_USEPOLLING=true
links:
- web
test-ci:
build:
context: ./webapp
dockerfile: Dockerfile-test
command: yarn test-ci
webappintegration:
build: ./webapp
command: yarn start-integration
volumes:
- ./webapp:/usr/src/app
- ./webapp:/webapp
ports:
- "8081:3000"
environment:
- NODE_ENV=development
- CHOKIDAR_USEPOLLING=true
cypress:
ipc: host
image: "cypress/included:4.2.0"
links:
- webappintegration
- web
environment:
# pass base url to test pointing at the web application
- CYPRESS_baseUrl=http://webappintegration:3000
# share the current folder as volume to avoid copying
working_dir: /integration-tests
volumes:
- ./integration-tests/:/integration-tests