forked from chaoss/augur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (42 loc) · 1.2 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
#SPDX-License-Identifier: MIT
version: '3'
services:
augur-db:
image: postgres:14
restart: unless-stopped
environment:
- "POSTGRES_DB=augur"
- "POSTGRES_USER=${AUGUR_DB_USER:-augur}"
- "POSTGRES_PASSWORD=${AUGUR_DB_PASSWORD:-augur}"
ports:
- "127.0.0.1:${AUGUR_DB_PORT:-5432}:5432"
redis:
image: "redis:alpine"
ports:
- 6379:6379
augur:
image: augur-new:latest
build:
context: .
dockerfile: ./docker/backend/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_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
depends_on:
- augur-db
- redis
volumes:
facade:
driver: local