-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose-itest.yml
56 lines (47 loc) · 1.09 KB
/
docker-compose-itest.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
version: '3'
services:
# redis setup, used by call state manager
redis-itest:
container_name: redis-itest
image: 'redis:4-alpine'
command: 'redis-server --requirepass spy0nM3'
ports:
- 7379:6379
networks:
docker_network:
ipv4_address: 172.30.0.10
stop_grace_period: 3s
# mongo for metrics meta store and live dashboard
mongo-itest:
container_name: mongo-itest
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: spy0nM3
image: mongo:latest
ports:
- 27017:27017
networks:
docker_network:
ipv4_address: 172.30.0.4
itest:
image: golang:1.18
container_name: itest
env_file: ./env/itest.env
depends_on:
- redis-itest
- mongo-itest
volumes:
- .:/code
command: bash -c "cd /code && go test ./test"
ports:
- 18000:18000
networks:
docker_network:
ipv4_address: 172.30.0.15
# docker network interface
networks:
docker_network:
ipam:
driver: default
config:
- subnet: 172.30.0.0/16