-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
67 lines (62 loc) · 1.39 KB
/
docker-compose.yaml
File metadata and controls
67 lines (62 loc) · 1.39 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: "3.9"
services:
counterapi_api:
build:
context: ./
dockerfile: Dockerfile
restart: always
ports:
- 8080:80
networks:
- counterapi_api
depends_on:
- counterapi_api_database
- counterapi_api_redis
- counterapi_prometheus
environment:
- DB_HOST=counterapi_api_database
- DB_PORT=5432
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_NAME=postgres
- REDIS_HOST=counterapi_api_redis
- REDIS_PORT=6379
- REDIS_DB=14
- RATE_LIMIT_INTERVAL_SECONDS=60
- RATE_LIMIT_CAPACITY=10
- RATE_LIMIT_KEY_PREFIX=counter-api-old-ratelimit
counterapi_prometheus:
image: prom/prometheus:latest
ports:
- 9090:9090
volumes:
- ./prometheus.yaml:/etc/prometheus/prometheus.yml
networks:
- counterapi_api
counterapi_api_database:
image: postgres:17.5-alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- '5432:5432'
volumes:
- counterapi_api:/var/lib/postgresql/data
networks:
- counterapi_api
counterapi_api_redis:
image: redis:latest
restart: always
ports:
- '6379:6379'
volumes:
- counterapi_api:/redis/data
networks:
- counterapi_api
networks:
counterapi_api:
driver: bridge
volumes:
counterapi_api:
driver: local