-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
41 lines (38 loc) · 1017 Bytes
/
docker-compose.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
40
41
version: "3.9"
services: # TODO: add apps
duck-postgresql:
image: postgres:16
container_name: postgresql
hostname: postgresql
volumes:
- duck-postgresql-data:/var/lib/postgresql/data:rw
ports:
- "5432:5432"
environment:
POSTGRES_DB: go_service_template
POSTGRES_USER: user
POSTGRES_PASSWORD: 1234
healthcheck:
test: [ "CMD", "pg_isready", "-d", "go_service_template" ]
interval: 10s
timeout: 3s
retries: 6
restart: unless-stopped
duck-apache-pulsar:
image: apachepulsar/pulsar:3.2.2
container_name: apache-pulsar
hostname: apache-pulsar
volumes:
- duck-apache-pulsar-data:/pulsar/data:rw
ports:
- "6650:6650"
entrypoint: [ "bin/pulsar", "standalone" ]
healthcheck:
test: [ "CMD", "/pulsar/bin/pulsar-admin", "brokers", "healthcheck" ]
interval: 30s
timeout: 3s
retries: 10
restart: unless-stopped
volumes:
duck-postgresql-data:
duck-apache-pulsar-data: