-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
47 lines (47 loc) · 1.31 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
services:
worker:
environment:
- DEPENDABOT_LOGLEVEL=0
- DEPENDABOT_CONFIG=/opt/dependabot-circleci/config.json
- DEPENDABOT_DBCONFIG=/opt/dependabot-circleci/dbconfig.json
command: -worker
build:
context: .
dockerfile: Dockerfile
restart: always
volumes:
- ./app-secrets:/opt/dependabot-circleci/config.json:ro
- ./db-secrets:/opt/dependabot-circleci/dbconfig.json:ro
depends_on:
- postgres
ports:
- "3001:3000"
controller:
environment:
- DEPENDABOT_LOGLEVEL=0
- DEPENDABOT_CONFIG=/opt/dependabot-circleci/config.json
- DEPENDABOT_DBCONFIG=/opt/dependabot-circleci/dbconfig.json
- DEPENDABOT_WORKERURL=http://dependabot-circleci-worker-1:3000
command: -controller -webhook
build:
context: .
dockerfile: Dockerfile
restart: always
depends_on:
- postgres
ports:
- "3000:3000"
volumes:
- ./app-secrets:/opt/dependabot-circleci/config.json:ro
- ./db-secrets:/opt/dependabot-circleci/dbconfig.json:ro
postgres:
image: postgres:12
restart: always
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: repos
ports:
- "5432:5432"
volumes:
- ./init-local.sql:/docker-entrypoint-initdb.d/init.sql:ro