-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
111 lines (103 loc) · 2.79 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
108
109
110
111
version: '3'
services:
influxdb:
image: influxdb:2.7.1-alpine
container_name: influxdb
restart: always
networks:
- docker-network
ports:
- '8086:8086'
environment:
- DOCKER_INFLUXDB_INIT_USERNAME=admin
- DOCKER_INFLUXDB_INIT_PASSWORD=${DB_ADMIN_PASSWORD}
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=${DB_ADMIN_TOKEN}
- DOCKER_INFLUXDB_INIT_ORG=${DB_INIT_ORG}
- DOCKER_INFLUXDB_INIT_BUCKET=${DB_INIT_BUCKET}
- DOCKER_INFLUXDB_INIT_MODE=setup
volumes:
- ./influxdb/containers/influxdb_data:/var/lib/influxdb2
grafana:
image: grafana/grafana:latest
user: "0"
container_name: grafana
restart: always
depends_on:
- influxdb
networks:
- docker-network
ports:
- '3000:3000'
environment:
- GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-simple-json-datasource
- DB_ADMIN_TOKEN=${DB_ADMIN_TOKEN}
- DB_INIT_ORG=${DB_INIT_ORG}
- DB_INIT_BUCKET=${DB_INIT_BUCKET}
volumes:
- ./grafana/container/grafana_data:/var/lib/grafana
- ./grafana/grafana.ini:/etc/grafana/grafana.ini
- ./grafana/provisioning/datasources/datasources.yml:/etc/grafana/provisioning/datasources/datasources.yml
- ./grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards
gsoy_importer:
build:
context: gsoy_importer
dockerfile: ./Dockerfile
container_name: gsoy_importer
restart: always
depends_on:
- influxdb
networks:
- docker-network
volumes:
- ./gsoy_importer/container/gsoy_data:/gsoy_importer/gsoy_data
- ./gsoy_importer/container/log:/gsoy_importer/log
- ./gsoy_importer/container/last_run:/gsoy_importer/last_run
environment:
- DB_ADMIN_TOKEN=${DB_ADMIN_TOKEN}
- DB_INIT_ORG=${DB_INIT_ORG}
- DB_INIT_BUCKET=${DB_INIT_BUCKET}
backend:
build:
context: diary_api
dockerfile: ./Dockerfile
container_name: backend
restart: always
networks:
- docker-network
expose:
- '8000'
volumes:
- ./diary_api/container/log:/app/log
environment:
- DB_ADMIN_TOKEN=${DB_ADMIN_TOKEN}
- DB_INIT_ORG=${DB_INIT_ORG}
- DB_INIT_BUCKET=${DB_INIT_BUCKET}
frontend:
build:
context: diary
dockerfile: ./Dockerfile
container_name: frontend
restart: always
networks:
- docker-network
expose:
- '9000'
nginx:
image: nginx:latest
container_name: nginx
restart: always
networks:
- docker-network
ports:
- '8000:8000'
- '9000:9000'
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/conf.d:/etc/nginx/conf.d:ro
- ./nginx/logs:/var/log/nginx
networks:
docker-network:
driver: bridge
volumes:
grafana_data: { }
influxdb_data: { }