-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.testing.yml
More file actions
56 lines (51 loc) · 1.24 KB
/
docker-compose.testing.yml
File metadata and controls
56 lines (51 loc) · 1.24 KB
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
version: '3'
services:
web.testing:
build: webflaskapi
volumes:
- $PWD/webflaskapi:/app
ports:
- "80:5000"
environment:
- FLASK_APP=flaskapi/api.py
- FLASK_DEBUG=1
- RUN_MODE=TESTING
- PYTHONDONTWRITEBYTECODE=1
- 'RUN=pipenv run flask run --host=0.0.0.0 --port=5000'
# Infinite loop, to keep it alive, foar testing
command: bash -c "while true; do echo 'sleeping...' && sleep 10; done"
networks:
- default
depends_on:
# - postgres.testing
- redis.testing
worker.testing:
build: celery_queue
volumes:
- $PWD/webflaskapi/data:/queue/data
environment:
- C_FORCE_ROOT=true
command: bash -c "while true; do echo 'sleeping...' && sleep 10; done"
depends_on:
- redis.testing
networks:
- default
# postgres.testing:
# image: postgres:11.2
# ports:
# - "5444:5432"
# environment:
# POSTGRES_DB: test_api
# POSTGRES_USER: test
# POSTGRES_PASSWORD: test123
# networks:
# - default
redis.testing:
image: redis:5.0-alpine
ports:
- "6379:6379"
environment:
REDIS_PASSWD: test456
command: redis-server --requirepass test456
networks:
- default