forked from Statcord/Statcord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
75 lines (68 loc) · 1.62 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
version: "3"
volumes:
config:
external: true
cacheData:
external: true
dbData:
external: true
influxdbData:
external: true
services:
api:
restart: unless-stopped
build: ./apiSrc
container_name: api
depends_on:
- postgres
- cache
volumes:
- config:/config
cache:
restart: unless-stopped
image: redis:7.0.7-alpine
command: redis-server --loglevel warning
volumes:
- cacheData:/data
container_name: Cache
postgres:
restart: unless-stopped
image: postgres:15.2-alpine
environment:
- POSTGRES_USER=disstat
- POSTGRES_PASSWORD=AQwrMb4WzngykR9v
- POSTGRES_DB=disstat
ports:
- 5436:5432
volumes:
- ./schema.postgresql.sql:/docker-entrypoint-initdb.d/schema.postgresql.sql:ro
- dbData:/var/lib/postgresql/data
container_name: DB
site:
restart: unless-stopped
build: ./siteSrc
container_name: site
depends_on:
- api
ports:
- 80:80
swagger:
image: swaggerapi/swagger-ui
environment:
- BASE_URL=/docs
- API_URL=/api/docs/json
container_name: swagger
influxdb:
image: influxdb:2.7.1-alpine
ports:
- '8086:8086'
container_name: influxdb
volumes:
- influxdbData:/var/lib/influxdb
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_ORG=disstat
- DOCKER_INFLUXDB_INIT_BUCKET=defaultBucket
- DOCKER_INFLUXDB_INIT_USERNAME=disStatAdmin
- 'DOCKER_INFLUXDB_INIT_PASSWORD=6#Le0zTjR0Q2'
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=yh3dMn8sXX09umUdz!ykW3m&d2PN9s