forked from IBM/count-mvs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
36 lines (36 loc) · 914 Bytes
/
docker-compose.yaml
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
version: "3.9"
services:
api:
build:
context: ./integration/api
command: python /api/api.py
networks:
default:
aliases:
- nocert
postgres:
build:
context: ./integration/db
restart: always
py3_integration:
build:
context: ./integration/env
volumes:
- ./integration/test:/count-mvs/integration/test
- ./python3/src:/count-mvs/python3/src
- ./log:/var/log
depends_on:
- "postgres"
- "api"
command: python3 -m pytest --pyversion 3 ${INTEGRATION_TESTS:-integration/test/}
py2_integration:
build:
context: ./integration/env
volumes:
- ./integration/test:/count-mvs/integration/test
- ./python2/src:/count-mvs/python2/src
- ./log:/var/log
depends_on:
- "postgres"
- "api"
command: python3 -m pytest --pyversion 2 ${INTEGRATION_TESTS:-integration/test/}