-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (52 loc) · 1.32 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
version: "3.8"
services:
db:
restart: unless-stopped
image: postgres:14.0
env_file: ./.env
volumes:
- ./.docker/postgres-data:/var/lib/postgresql/data
networks:
ducatus-merchant-network:
healthcheck:
test: [ "CMD", "pg_isready", "-U", "${POSTGRES_USER}" ]
interval: 10s
rabbitmq:
restart: unless-stopped
image: rabbitmq:3.8-management-alpine
networks:
ducatus-merchant-network:
env_file: ./.env
healthcheck:
test: [ "CMD", "rabbitmq-diagnostics", "-q", "ping" ]
interval: 10s
scanner: &python-service
restart: unless-stopped
image: "ghcr.io/ducatusx/ducatus_merchant_api:${GITHUB_BUILD_BRANCH?master}"
build:
context: .
dockerfile: Dockerfile
env_file: ./.env
depends_on:
db:
condition: service_healthy
rabbitmq:
condition: service_healthy
volumes:
- ./:/code/
command: [ "python", "scanner/networks/networks_scan_entrypoint.py" ]
networks:
ducatus-merchant-network:
web:
<<: *python-service
volumes:
- ./:/code/
- ./static/:/code/static/
ports:
- "${DOCKER_EXPOSE_PORT}:${DJANGO_PORT}"
command: /runserver.sh
receiver:
<<: *python-service
command: [ "python", "merchant_api/receiver.py" ]
networks:
ducatus-merchant-network: