forked from cuemacro/tcapy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.test.yml
64 lines (59 loc) · 1.29 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: '3.6'
services:
sut:
build:
context: .
dockerfile: Dockerfile
target: test
volumes:
- ./tcapy:/tcapy/tcapy:ro
- ./tcapygen:/tcapy/tcapygen:ro
- ./artifacts:/tcapy/artifacts
- ./source:/source:ro
env_file: .tcapy.env
environment:
- APP_ENV=docker
depends_on:
- celery
- redis
- memcached
- mongo
- mysql
celery:
build:
context: .
dockerfile: Dockerfile
target: test
working_dir: /tcapy
command: "celery -A tcapy.conf.celery_calls worker --purge --discard --loglevel=debug -Q celery --concurrency=14 -f test_celery.log"
env_file: .tcapy.env
environment:
- APP_ENV=docker
- C_FORCE_ROOT=true
depends_on:
- redis
- mongo
- mysql
- memcached
redis:
image: "redis:alpine"
command: redis-server --server_port 6379 --save ""
ports:
- 6379:6379
memcached:
image: memcached
ports:
- 11211:11211
mongo:
image: mongo:latest
env_file: .tcapy.env
ports:
- 27017:27017
mysql:
image: mysql
command: --default-authentication-plugin=mysql_native_password
env_file: .tcapy.env
environment:
- MYSQL_DATABASE=trade_database_test_harness
ports:
- 3306:3306