-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
63 lines (59 loc) · 1.81 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
version: '3.8'
services:
tests:
image: adonis-cache
network_mode: host
build:
context: .
environment:
REDIS_HOST: 0.0.0.0
REDIS_PORT: 7007
REDIS_CLUSTER_PORTS: '7000,7001,7002'
WAIT_HOSTS: 0.0.0.0:3305, 0.0.0.0:7000, 0.0.0.0:7001, 0.0.0.0:7002, 0.0.0.0:7003, 0.0.0.0:7004, 0.0.0.0:7005, 0.0.0.0:7006, 0.0.0.0:7007, 0.0.0.0:8000
MEMCACHED_SERVER_URL: 0.0.0.0:11211
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
AWS_REGION: ${AWS_REGION}
DYNAMO_ENDPOINT: ${DYNAMO_ENDPOINT}
DB_CONNECTION: ${DB_CONNECTION}
MYSQL_DB_NAME: ${MYSQL_DB_NAME}
MYSQL_HOST: ${MYSQL_HOST}
MYSQL_PORT: ${MYSQL_PORT}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
depends_on:
- redis
- memcached
- mysql
- dynamodb-local
command: sh -c "/wait && nyc --reporter=text npm run test:docker"
redis:
network_mode: host
image: grokzen/redis-cluster
environment:
REDIS_CLUSTER_IP: 0.0.0.0
IP: 0.0.0.0
STANDALONE: 'true'
memcached:
image: 'memcached:alpine'
ports:
- '11211:11211'
mysql:
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password --sync_binlog=0 --innodb_doublewrite=OFF --innodb-flush-log-at-trx-commit=0 --innodb-flush-method=nosync
environment:
MYSQL_DATABASE: lucid
MYSQL_USER: test
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: password
ports:
- '3305:3306'
dynamodb-local:
command: '-jar DynamoDBLocal.jar -sharedDb -dbPath ./data'
image: 'amazon/dynamodb-local:latest'
container_name: dynamodb-local
ports:
- '8000:8000'
volumes:
- './docker/dynamodb:/home/dynamodblocal/data'
working_dir: /home/dynamodblocal