-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
202 lines (186 loc) · 6.42 KB
/
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
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
version: '3.9'
services:
buggregator-reverse-proxy:
image: traefik:v2.9
command:
- "--accesslog"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--providers.file.directory=/configuration/"
- "--providers.file.watch=true"
ports:
- ${TRAEFIC_PORT_HTTP:-80}:80
labels:
- "traefik.enable=true"
- "traefik.http.routers.buggregator-reverse-proxy.entrypoints=web"
- "traefik.http.routers.buggregator-reverse-proxy.rule=Host(`traefik.buggregator.localhost`)"
- "traefik.http.services.buggregator-reverse-proxy.loadbalancer.server.port=8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- buggregator-network
buggregator-api:
image: ghcr.io/buggregator/buggregator.dev-app:latest
environment:
# TOKENIZER_CACHE_TARGETS: true
APP_ENV: production
DEBUG: false
VERBOSITY_LEVEL: basic
MONOLOG_DEFAULT_CHANNEL: roadrunner
MONOLOG_DEFAULT_LEVEL: WARNING
QUEUE_CONNECTION: in-memory
CACHE_STORAGE: rr
CYCLE_SCHEMA_CACHE: true
CYCLE_SCHEMA_WARMUP: true
SENTRY_DSN: ${SENTRY_DSN:-http://sentry@buggregator-demo:8000/1}
DB_CONNECTION: pgsql
DB_DATABASE: app
DB_HOST: buggregator-pgsql
DB_USERNAME: homestead
DB_PASSWORD: secret
RR_CENTRIFUGE_PROXY_ADDRESS: tcp://0.0.0.0:10001
RR_CENTRIFUGE_GRPC_API_ADDRESS: tcp://buggregator-ws:10000
VAR_DUMPER_FORMAT: server
VAR_DUMPER_SERVER: buggregator-demo:9912
GITHUB_TOKEN: ${GITHUB_TOKEN}
volumes:
- ./app:/app
depends_on:
- buggregator-pgsql
networks:
- buggregator-network
buggregator-spa:
image: ghcr.io/buggregator/buggregator.dev-spa:latest
environment:
NUXT_PUBLIC_API_URL: http://buggregator.localhost
NUXT_PUBLIC_WS_URL: ws://buggregator.localhost/connection/websocket
NUXT_PUBLIC_EXAMPLES_URL: http://buggregator.localhost
NUXT_PUBLIC_BUGGREGATOR_URL: http://demo.buggregator.localhost
networks:
- buggregator-network
buggregator-ws:
image: centrifugo/centrifugo:v5
volumes:
- ./.docker/centrifugo/config.json:/centrifugo/config.json
command: centrifugo -c config.json
depends_on:
- buggregator-api
networks:
- buggregator-network
buggregator-examples:
image: ghcr.io/buggregator/examples:latest
environment:
APP_ENV: production
APP_KEY: ${APP_KEY:-base64:kMvf1mHFIuCf+ZqMiId7yo6v4oKtjuWqnlxJTWsWv7k=}
LOG_LEVEL: debug
BROADCAST_DRIVER: log
CACHE_DRIVER: array
QUEUE_CONNECTION: sync
DB_CONNECTION: pgsql
DB_HOST: buggregator-pgsql
DB_DATABASE: examples
DB_USERNAME: homestead
DB_PASSWORD: secret
APP_URL: ${APP_URL:-http://buggregator.localhost}
MAIL_HOST: buggregator-demo
MAIL_PORT: 1025
MAIL_ENCRYPTION: null
MAIL_FROM_ADDRESS: [email protected]
MAIL_FROM_NAME: sender
RAY_HOST: ray@buggregator-demo
RAY_PORT: 8000
VAR_DUMPER_SERVER: buggregator-demo:9912
SENTRY_LARAVEL_DSN: http://sentry@buggregator-demo:8000/123
LOG_SOCKET_URL: buggregator-demo:9913
LOG_SLACK_WEBHOOK_URL: http://buggregator-demo:8000/slack
INSPECTOR_URL: http://inspector@buggregator-demo:8000
INSPECTOR_API_KEY: test
BUGGREGATOR_URL: ${BUGGREGATOR_DEMO_URL:-http://demo.buggregator.localhost}
PROFILER_ENDPOINT: http://profiler@buggregator-demo:8000
depends_on:
- buggregator-pgsql
networks:
- buggregator-network
buggregator-demo:
image: ghcr.io/buggregator/server:latest
labels:
- "traefik.enable=true"
- "traefik.http.routers.buggregator-demo-http.entrypoints=web"
- "traefik.http.routers.buggregator-demo-http.rule=Host(`demo.buggregator.localhost`)"
- "traefik.http.services.buggregator-demo-http.loadbalancer.server.port=8000"
networks:
- buggregator-network
buggregator-docs:
image: ghcr.io/buggregator/docs:latest
labels:
- "traefik.enable=true"
- "traefik.http.routers.buggregator-docs-http.entrypoints=web"
- "traefik.http.routers.buggregator-docs-http.rule=Host(`docs.buggregator.localhost`)"
- "traefik.http.services.buggregator-docs-http.loadbalancer.server.port=80"
networks:
- buggregator-network
buggregator-n8n:
image: docker.n8n.io/n8nio/n8n
environment:
N8N_HOST: ${N8N_HOST:-wf.buggregator.localhost}
NODE_ENV: production
WEBHOOK_URL: ${N8N_WEBHOOK_URL:-http://wf.buggregator.localhost}
GENERIC_TIMEZONE: ${N8N_GENERIC_TIMEZONE:-UTC}
DB_TYPE: postgresdb
DB_POSTGRESDB_DATABASE: n8n
DB_POSTGRESDB_HOST: buggregator-pgsql
DB_POSTGRESDB_PORT: 5432
DB_POSTGRESDB_USER: homestead
DB_POSTGRESDB_PASSWORD: secret
DB_POSTGRESDB_SCHEMA: public
volumes:
- ./.docker-data/n8n:/home/node/.n8n
labels:
- "traefik.enable=true"
- "traefik.http.routers.buggregator-wf-http.entrypoints=web"
- "traefik.http.routers.buggregator-wf-http.rule=Host(`wf.buggregator.localhost`)"
- "traefik.http.services.buggregator-wf-http.loadbalancer.server.port=5678"
depends_on:
- buggregator-pgsql
networks:
- buggregator-network
buggregator-pgsql:
image: postgres:15
healthcheck:
test: pg_isready -d $$POSTGRES_DB -U $$POSTGRES_USER
interval: 2s
timeout: 5s
start_period: 2s
restart: always
volumes:
- type: bind
source: ./.docker-data/db
target: /var/lib/postgresql/data
- ./.docker/postgres/init-user-db.sh:/docker-entrypoint-initdb.d/init-user-db.sh
environment:
POSTGRES_USER: homestead
POSTGRES_PASSWORD: secret
POSTGRES_DB: homestead
networks:
- buggregator-network
buggregator-nginx:
image: nginx
restart: always
volumes:
- ./.docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
labels:
- "traefik.enable=true"
- "traefik.http.routers.buggregator-http.entrypoints=web"
- "traefik.http.routers.buggregator-http.rule=Host(`buggregator.localhost`)"
- "traefik.http.services.buggregator-http.loadbalancer.server.port=80"
networks:
- buggregator-network
networks:
buggregator-network:
ipam:
driver: default
config:
- subnet: 172.0.10.0/24