-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
71 lines (67 loc) · 1.93 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
70
71
services:
scraper:
build: .
environment:
SCHEDULER_DB_USERNAME: postgres
SCHEDULER_DB_DBNAME: postgres
SCHEDULER_DB_HOSTNAME: postgres
SCHEDULER_DB_PORT: 5432
SCHEDULER_DB_PG_PASSWORD: super-secret-password
SNS_ENDPOINT_URL: http://localstack:4566
AWS_DEFAULT_REGION: us-east-1
AWS_ACCESS_KEY_ID: "my-access-key"
AWS_SECRET_ACCESS_KEY: "my-secret-access-key"
DREXEL_EMAIL: ${DREXEL_EMAIL}
DREXEL_PASSWORD: ${DREXEL_PASSWORD}
DREXEL_MFA_SECRET_KEY: ${DREXEL_MFA_SECRET_KEY}
volumes:
- ./:/app
depends_on:
- postgres
- localstack
grafana:
image: grafana/grafana-oss
container_name: grafana
restart: unless-stopped
ports:
- "3000:3000"
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_NAME="Main Org."
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_UNIFIED_ALERTING_ENABLED=false
- GF_ALERTING_ENABLE=false
- GF_PANELS_DISABLE_SANITIZE_HTML=true
- GF_NEWS_NEWS_FEED_ENABLED=false
volumes:
- ./grafana_data:/var/lib/grafana
postgres:
image: postgres:latest
environment:
POSTGRES_PASSWORD: super-secret-password
ports:
- "5432:5432"
volumes:
- ./postgres-data:/var/lib/postgresql/data
pgweb:
container_name: pgweb
restart: always
image: sosedoff/pgweb
ports:
- "30012:8081"
environment:
- DATABASE_URL=postgres://postgres:super-secret-password@postgres:5432/postgres?sslmode=disable
depends_on:
- postgres
# Used to imitate AWS services locally
# We are using SNS in this case for sending error emails
localstack:
image: localstack/localstack
ports:
- "4566:4566"
environment:
- SERVICES=sns
- EDGE_PORT=4566
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "./scripts/create-sns-topic.sh:/etc/localstack/init/ready.d/init-aws.sh"