-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-tests.yml
More file actions
54 lines (47 loc) · 941 Bytes
/
Copy pathdocker-compose-tests.yml
File metadata and controls
54 lines (47 loc) · 941 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
42
43
44
45
46
47
48
49
50
51
52
53
54
version: "3.9"
services:
ylab_api_test:
container_name: ylab_api_test
build:
context: .
dockerfile: Dockerfile
volumes:
- ./:/app
entrypoint: >
sh -c "
pytest -vv
"
networks:
- ylab_network
# test_db:
# container_name: test_db
# image: postgres:15.1-alpine
# environment:
# POSTGRES_DB: "${TEST_DB_NAME}"
# POSTGRES_USER: "${TEST_POSTGRES_USER}"
# POSTGRES_PASSWORD: "${TEST_POSTGRES_PASSWORD}"
# PGUSER: "${TEST_PGUSER}"
# PGPORT: 6000
# healthcheck:
# test:
# [
# "CMD-SHELL",
# "pg_isready",
# "-U",
# "${TEST_PGUSER}",
# "-d",
# "${TEST_DB_NAME}",
# ]
# interval: 10s
# timeout: 30s
# retries: 5
# start_period: 80s
# expose:
# - 6000
# ports:
# - "6000:6000"
# networks:
# - test_network
networks:
ylab_network:
name: ylab_network