-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (44 loc) · 1.3 KB
/
docker-compose.yml
File metadata and controls
46 lines (44 loc) · 1.3 KB
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
services:
postgres:
image: postgres:16-alpine
container_name: drifthound_postgres
environment:
POSTGRES_USER: drifthound
POSTGRES_PASSWORD: drifthound
POSTGRES_DB: drifthound_development
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U drifthound -d drifthound_development"]
interval: 5s
timeout: 5s
retries: 5
app:
build: .
container_name: drifthound_app
environment:
RAILS_ENV: development
DATABASE_URL: postgres://drifthound:drifthound@postgres:5432/drifthound_development
SLACK_NOTIFICATIONS_ENABLED: "true"
NOTIFY_ON_FIRST_CHECK: "true"
SLACK_BOT_TOKEN: ${SLACK_BOT_TOKEN}
SLACK_DEFAULT_CHANNEL: "#infrastructure-drift"
ADMIN_EMAIL: "foo@example.com"
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
GITHUB_OAUTH_ENABLED: ${GITHUB_OAUTH_ENABLED}
GITHUB_CLIENT_ID: ${GITHUB_CLIENT_ID}
GITHUB_CLIENT_SECRET: ${GITHUB_CLIENT_SECRET}
GITHUB_ORG: ${GITHUB_ORG}
GITHUB_TEAM_ADMIN: ${GITHUB_TEAM_ADMIN}
depends_on:
- postgres
ports:
- "3000:3000"
volumes:
- .:/rails
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/up"]
volumes:
postgres_data: