forked from OpenBuilders/access-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
60 lines (52 loc) · 1.13 KB
/
docker-compose.test.yml
File metadata and controls
60 lines (52 loc) · 1.13 KB
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
57
58
59
60
x-python-service:
&x-python-service
user: "1000:1000"
depends_on:
redis:
condition: service_healthy
postgres-test:
condition: service_started
networks:
- internal
services:
test:
<<: *x-python-service
build:
context: .
dockerfile: ./config/docker/Dockerfile.test-executor
image: access-tests
env_file:
- ./config/env_template/.core.env.test
- ./config/env_template/.community-manager.env
container_name: "access-tests"
volumes:
- ./backend:/app
redis:
image: "redis:7.2.4-alpine"
ports:
- "6380:6379"
volumes:
- volume-queue:/data
container_name: "access-redis"
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 5s
timeout: 3s
retries: 5
networks:
- internal
postgres-test:
image: "postgres:17.5"
ports:
- "5442:5432"
environment:
- POSTGRES_USER=${SQL_USER}
- POSTGRES_PASSWORD=${SQL_PASSWORD}
- POSTGRES_DB=${SQL_DATABASE}
container_name: "access-postgres-test"
networks:
- internal
volumes:
volume-queue:
networks:
internal: