-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
42 lines (42 loc) · 1.03 KB
/
docker-compose.test.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.4"
services:
test:
image: "amir20/clashleaders:${TAG:-latest}"
command: "poetry run pytest"
environment:
- API_TOKEN=not-valid
- FLASK_APP=clashleaders
- BUGSNAG_API_KEY=
depends_on:
- redis
volumes:
- ./clashleaders:/app/clashleaders
- ./tests/:/app/tests
mongo:
volumes:
- ./:/clashleaders
- ./mongosnapshot:/docker-entrypoint-initdb.d
web:
environment:
- API_TOKEN=not-valid
- FLASK_APP=clashleaders
- BUGSNAG_API_KEY=
- IMGPROXY_KEY=01
- IMGPROXY_SALT=01
- IMGPROXY_BASE=http://imgproxy-cache/
imgproxy:
environment:
- IMGPROXY_KEY=01
- IMGPROXY_SALT=01
integration:
image: "amir20/clashleaders-int-tests:${TAG:-latest}"
command: "./wait-for-it.sh web:80 -- npm test"
environment:
- BASE=http://web/
volumes:
- ./integration/__image_snapshots__:/app/__image_snapshots__
build:
context: ./integration
dockerfile: Dockerfile
depends_on:
- web