-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (68 loc) · 1.43 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
66
67
68
69
70
71
72
73
74
services:
postgres:
image: "postgres:latest"
environment:
POSTGRES_DB: "postgres"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "password"
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
rabbitmq:
image: "rabbitmq:latest"
environment:
RABBITMQ_DEFAULT_USER: "guest"
RABBITMQ_DEFAULT_PASS: "guest"
ports:
- "5672:5672"
- "15672:15672"
healthcheck:
test: ["CMD", "rabbitmqctl", "status"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
openmeteo:
image: "ghcr.io/open-meteo/open-meteo"
ports:
- "8080:8080"
volumes:
- open-meteo-data:/app/data
api:
build: ./api
ports:
- "50051:50051"
restart: on-failure
depends_on:
openmeteo:
condition: service_started
producer:
build: ./pp
environment:
API_HOST: "api"
RABBITMQ_HOST: "rabbitmq"
RESOLUTION: 0
restart: on-failure
depends_on:
api:
condition: service_started
rabbitmq:
condition: service_healthy
consumer:
build: ./pc
ports:
- "8090:8090"
environment:
AMQP_HOST: "rabbitmq"
PG_DATABASE: "postgres"
restart: on-failure
depends_on:
postgres:
condition: service_started
rabbitmq:
condition: service_healthy
volumes:
postgres-data:
open-meteo-data:
external: true