-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
65 lines (60 loc) · 1.24 KB
/
docker-compose.yml
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
61
62
63
64
65
services:
integration-tests:
build: .
env_file:
- .env
volumes:
- .:/app
command: [ "./scripts/tests.sh" ]
depends_on:
rabbitmq:
condition: service_healthy
db:
condition: service_healthy
networks:
- djangooutboxpattern
rabbitmq:
image : rabbitmq:3-management
volumes:
- ./tests/resources/rabbitmq:/etc/rabbitmq/
healthcheck:
test: rabbitmq-diagnostics -q ping
networks:
- djangooutboxpattern
develop:
build: .
volumes:
- .:/app
env_file:
- .env
depends_on:
rabbitmq:
condition: service_healthy
db:
condition: service_healthy
networks:
- djangooutboxpattern
db:
image: postgres:16-alpine
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB:
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER}"]
interval: 10s
timeout: 5s
retries: 5
networks:
- djangooutboxpattern
lint-formatter:
build: .
volumes:
- .:/app
command: ["./scripts/start-formatter-lint.sh"]
networks:
- djangooutboxpattern
networks:
djangooutboxpattern: