-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
94 lines (86 loc) · 2.01 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: "3"
services:
runner:
image: ghcr.io/bob-cd/runner
networks:
- bob-net
depends_on:
- storage
- queue
environment:
BOB_STORAGE_URL: jdbc:postgresql://storage:5432/bob
BOB_QUEUE_URL: amqp://queue:5672
BOB_STREAM_URL: rabbitmq-stream://guest:guest@queue:5552/%2f
BOB_QUEUE_API_URL: http://queue:15672/api
user: podman
devices:
- /dev/fuse
security_opt:
- label=disable
# for podman-static
#- unmask=/proc/*
# next 2 are needed for rootless docker/containerd
- seccomp=unconfined
- apparmor=unconfined
apiserver:
image: ghcr.io/bob-cd/apiserver
ports:
- 7777:7777
networks:
- bob-net
depends_on:
- queue
- storage
environment:
BOB_STORAGE_URL: jdbc:postgresql://storage:5432/bob
BOB_QUEUE_URL: amqp://queue:5672
BOB_STREAM_URL: rabbitmq-stream://guest:guest@queue:5552/%2f
BOB_QUEUE_API_URL: http://queue:15672/api
queue:
image: docker.io/library/rabbitmq:4-management-alpine
entrypoint: sh
command:
- -c
- rabbitmq-plugins enable --offline rabbitmq_stream && rabbitmq-server
networks:
- bob-net
ports:
- 5672:5672
- 15672:15672
- 5552:5552
volumes:
- queuedata:/var/lib/rabbitmq/mnesia
environment:
RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS: -rabbitmq_stream advertised_host queue
storage:
image: docker.io/library/postgres:alpine
networks:
- bob-net
ports:
- 5432:5432
volumes:
- pgdata:/var/lib/postgresql/data
environment:
POSTGRES_DB: bob
POSTGRES_USER: bob
POSTGRES_PASSWORD: bob
artifact-local:
image: ghcr.io/bob-cd/artifact-local
networks:
- bob-net
ports:
- 8001:8001
volumes:
- artifactdata:/opt/artifacts
resource-git:
image: ghcr.io/bob-cd/resource-git
networks:
- bob-net
ports:
- 8000:8000
networks:
bob-net:
volumes:
pgdata:
artifactdata:
queuedata: