-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
125 lines (112 loc) · 2.75 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# This file is part of Bob.
#
# Bob is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Bob is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Bob. If not, see <http://www.gnu.org/licenses/>.
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
volumes:
- /var/run/docker.sock:/var/run/docker.sock
entities:
image: ghcr.io/bob-cd/entities
networks:
- bob-net
depends_on:
- storage
- queue
environment:
BOB_STORAGE_URL: jdbc:postgresql://storage:5432/bob
BOB_QUEUE_URL: amqp://queue:5672
apiserver:
image: ghcr.io/bob-cd/apiserver
hostname: hello.bob
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
queue:
image: rabbitmq:3-alpine
networks:
- bob-net
volumes:
- queuedata:/var/lib/rabbitmq/mnesia
ports:
- 5672:5672
storage:
image: postgres:alpine
networks:
- bob-net
volumes:
- pgdata:/var/lib/postgresql/data
environment:
POSTGRES_DB: bob
POSTGRES_USER: bob
POSTGRES_PASSWORD: bob
ports:
- 5432:5432
artifact:
image: ghcr.io/bob-cd/artifact-local
networks:
- bob-net
volumes:
- artifactdata:/opt/artifacts
resource:
image: ghcr.io/bob-cd/resource-git
networks:
- bob-net
ui:
image: codesimple/elm:0.19
working_dir: /src
entrypoint: ["elm","reactor"]
ports:
- 7979:8000
volumes:
- ./elm:/src/
nginx-proxy:
image: nginx:alpine
networks:
- bob-net
depends_on:
- apiserver
environment:
BACKEND: apiserver:7777
ports:
- 7887:80
volumes:
- ./nginx-cors-proxy.conf:/etc/nginx/conf.d/default.template:ro
command:
- /bin/sh
- -c
- envsubst '$$BACKEND' < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf &&
exec nginx-debug -g 'daemon off;'
networks:
bob-net:
volumes:
pgdata:
artifactdata:
queuedata: