-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (52 loc) · 1.31 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
version: '3'
services:
db:
image: postgres
restart: always
build:
context: "${DB_BUILD_CONTEXT}"
dockerfile: Postgres-Dockerfile
ports:
- "5432:5432"
environment:
POSTGRES_USER: "${DB_USER_ID}"
POSTGRES_PASSWORD: "${DB_USER_PASSWORD}"
APP_DB_NAME: "${APP_DB_NAME}"
APP_DB_USER: "${APP_DB_USER}"
APP_DB_PASS: "${APP_DB_PASS}"
volumes:
- ${POSTGRES_HOME_DIR}/data:/var/lib/postgresql/data
app:
container_name: pickly-service
build:
context: "${APP_BUILD_CONTEXT}"
dockerfile: Dockerfile
ports:
- "8080:8080"
environment:
DB_HOSTNAME: db
DB_PORT: 5432
DB_DBNAME: "${APP_DB_NAME}"
DB_USERNAME: "${APP_DB_USER}"
DB_PASSWORD: "${APP_DB_PASS}"
depends_on:
- db
prometheus:
image: prom/prometheus
container_name: prometheus
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
grafana:
image: grafana/grafana
ports:
- "3000:3000"
volumes:
- ./grafana/data:/var/lib/grafana
- ./grafana/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
environment:
GF_SECURITY_ADMIN_USER: "${GF_USER}"
GF_SECURITY_ADMIN_PASSWORD: "${GF_PASS}"
depends_on:
- prometheus