-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest_cluster.yaml
39 lines (37 loc) · 1 KB
/
test_cluster.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
37
38
39
version: "3"
services:
db:
# NOTE: using postgres 13.3 to avoid m1 libpq issue:
# https://github.com/psycopg/psycopg2/issues/1360#issuecomment-1209943490
image: postgres:13.3
restart: always
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASS}
networks:
- tha-test
ports:
- 5432:5432
provisioner:
build:
context:
test_provisioner
depends_on:
- db
restart: "no"
networks:
- tha-test
environment:
- THA_DB_URI=${THA_DB_URI}
- THA_TEST_PASSWORD=${THA_TEST_PASSWORD}
server:
image: ilriccio/thehistoryatlas:test_server
command: [ "python3", "-m", "pytest", "-vvv" ]
networks:
- tha-test
environment:
- TEST_DB_URI=${TEST_DB_URI}
- TTL=${TTL}
- REFRESH_BY=${REFRESH_BY}
- SEC_KEY=${SEC_KEY}
networks:
tha-test: