-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
107 lines (101 loc) · 2.69 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
services:
redis:
image: redis:latest
container_name: redis_container
ports:
- 6379:6379
restart: on-failure
volumes:
- redis-data:/data
prometheus:
image: prom/prometheus
container_name: prometheus
ports:
- 9090:9090
restart: on-failure
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana-enterprise
container_name: grafana
ports:
- 3000:3000
restart: on-failure
volumes:
- grafana-storage:/var/lib/grafana
postgres:
container_name: postgres_container
image: postgres:13.5
ports:
- 5432:5432
volumes:
- ./postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: turbo_deploy
PGDATA: /var/lib/postgresql/data/pgdata
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 10s
timeout: 5s
retries: 5
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: pgadmin4@pgadmin.org
PGADMIN_DEFAULT_PASSWORD: admin
PGADMIN_CONFIG_SERVER_MODE: "False"
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: "False"
ports:
- "3030:80"
depends_on:
- postgres
golang:
container_name: golang_container
build:
dockerfile: Dockerfile.local
environment:
- STAGE=${STAGE}
- DB_URL=${DB_URL}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- DB_NAME=${DB_NAME}
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- REDIS_USER=${REDIS_USER}
- REDIS_PASSWORD=${REDIS_PASSWORD}
- SENTRY_DSN=${SENTRY_DSN}
- DD_AGENT_HOST=${DD_AGENT_HOST}
- S3_BUCKET=${S3_BUCKET}
- AWS_REGION=${AWS_REGION}
- AWS_ACCESS_KEY=${AWS_ACCESS_KEY}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- TaskDefinitionSubnet1=${TaskDefinitionSubnet1}
- TaskDefinitionSubnet2=${TaskDefinitionSubnet2}
- TaskDefinitionSubnet3=${TaskDefinitionSubnet3}
- TaskDefinitionS3BucketName=${TaskDefinitionS3BucketName}
- TaskDefinitionSecurityGroup1=${TaskDefinitionSecurityGroup1}
- ClusterARN=${ClusterARN}
- TaskDefinitionARN=${TaskDefinitionARN}
- LOG_QUEUE_URL=${LOG_QUEUE_URL}
- STATUS_QUEUE_URL=${STATUS_QUEUE_URL}
- EMAIl_QUEUE_URL=${EMAIl_QUEUE_URL}
ports:
- 8080:8080
restart: on-failure
depends_on:
- redis
- grafana
- postgres
- prometheus
volumes:
- ./:/app
volumes:
redis-data: {}
grafana-storage: {}
db:
driver: local