-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
41 lines (38 loc) · 948 Bytes
/
docker-compose.test.yml
File metadata and controls
41 lines (38 loc) · 948 Bytes
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
version: "3"
services:
test_climsoft_api:
image: climsoft_api:0.1.0
build:
context: .
dockerfile: Dockerfile
container_name: test_climsoft_api
expose:
- "5000"
volumes:
- ./src:/code/src
- ./tests:/code/tests
environment:
- CLIMSOFT_SECRET_KEY=test_secret_key
- CLIMSOFT_DATABASE_URI=mysql+mysqldb://root:password@test_climsoft_db:3306/climsoft
depends_on:
- test_climsoft_db
command: ["pytest", "tests/integration", "-s"]
networks:
- test_climsoft_api_test_network
test_climsoft_db:
image: mariadb:10.1
build:
context: .
dockerfile: Dockerfile.mariadb
container_name: test_climsoft_db
expose:
- "3306"
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=climsoft
networks:
- test_climsoft_api_test_network
networks:
test_climsoft_api_test_network: