-
Notifications
You must be signed in to change notification settings - Fork 847
/
docker-compose.yml
71 lines (65 loc) · 2.03 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
#SPDX-License-Identifier: MIT
version: '3'
services:
augur-db:
image: postgres:16
restart: unless-stopped
environment:
- "POSTGRES_DB=augur"
- "POSTGRES_USER=${AUGUR_DB_USER:-augur}"
- "POSTGRES_PASSWORD=${AUGUR_DB_PASSWORD:-augur}"
- "PGDATA=/var/lib/postgresql/data/pgdata"
ports:
- "127.0.0.1:${AUGUR_DB_PORT:-5432}:5432"
volumes:
- augurpostgres:/var/lib/postgresql/data
redis:
image: "redis:alpine"
ports:
- 6379:6379
rabbitmq:
image: augur-rabbitmq
build:
context: .
dockerfile: ./docker/rabbitmq/Dockerfile
args:
- RABBIT_MQ_DEFAULT_USER=${AUGUR_RABBITMQ_USERNAME:-augur}
- RABBIT_MQ_DEFAULT_PASSWORD=${AUGUR_RABBITMQ_PASSWORD:-password123}
- RABBIT_MQ_DEFAULT_VHOST=${AUGUR_RABBITMQ_VHOST:-augur_vhost}
# ports for amqp connections / management api
ports:
- 5671:5671
- 5672:5672
- 15671:15671
- 15672:15672
augur:
image: augur-new:latest
build:
context: .
dockerfile: ./docker/backend/${AUGUR_TARGET:-Dockerfile}
volumes:
- facade:/augur/facade
restart: unless-stopped
ports:
- 5002:5000
extra_hosts:
- "host.docker.internal:host-gateway" #Be able to ping services on the local machine
environment:
- "AUGUR_DB=postgresql+psycopg2://${AUGUR_DB_USER:-augur}:${AUGUR_DB_PASSWORD:-augur}@augur-db:5432/augur"
- "AUGUR_DB_SCHEMA_BUILD=1"
- "AUGUR_FLAGS=$AUGUR_FLAGS"
- "AUGUR_GITHUB_API_KEY=${AUGUR_GITHUB_API_KEY}"
- "AUGUR_GITLAB_API_KEY=${AUGUR_GITLAB_API_KEY}"
- "AUGUR_GITHUB_USERNAME=${AUGUR_GITHUB_USERNAME}"
- "AUGUR_GITLAB_USERNAME=${AUGUR_GITLAB_USERNAME}"
- REDIS_CONN_STRING=redis://redis:6379
- RABBITMQ_CONN_STRING=amqp://${AUGUR_RABBITMQ_USERNAME:-augur}:${AUGUR_RABBITMQ_PASSWORD:-password123}@rabbitmq:5672/${AUGUR_RABBITMQ_VHOST:-augur_vhost}
depends_on:
- augur-db
- redis
- rabbitmq
volumes:
facade:
driver: local
augurpostgres:
driver: local