-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
57 lines (53 loc) · 1.36 KB
/
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
services:
grafana:
image: grafana/grafana-oss
container_name: grafana
ports:
- ${GRAFANA_PORT}:${GRAFANA_PORT}
volumes:
- ./grafana/grafana.ini:/etc/grafana/grafana.ini
- ./grafana/provisioning/:/etc/grafana/provisioning/
- ./grafana/dashboards:/var/lib/grafana/dashboards
environment:
- GF_SERVER_HTTP_PORT=${GRAFANA_PORT}
env_file:
- .env
postgres:
image: postgres
container_name: postgres
ports:
- ${POSTGRES_PORT}:${POSTGRES_PORT}
environment:
- POSTGRES_USER=${DATABASE_USER}
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
- POSTGRES_DB=${DATABASE_NAME}
- PGPORT=${POSTGRES_PORT}
healthcheck:
test: ["CMD", "pg_isready", "-U", "${DATABASE_USER}"]
interval: 5s
timeout: 5s
retries: 5
backend:
build: ./backend
container_name: backend
volumes:
- ./backend/src/:/backend/src
- ./backend/src/static/uploads/:/backend/src/static/uploads
depends_on:
postgres:
condition: service_healthy
ports:
- ${BACKEND_PORT}:${BACKEND_PORT}
environment:
- UVICORN_PORT=${BACKEND_PORT}
env_file:
- .env
frontend:
build: ./frontend
container_name: frontend
ports:
- ${FRONTEND_PORT}:${FRONTEND_PORT}
environment:
- PORT=${FRONTEND_PORT}
env_file:
.env