-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yml
More file actions
101 lines (90 loc) · 2.73 KB
/
compose.yml
File metadata and controls
101 lines (90 loc) · 2.73 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
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
version: "3.9"
services:
postgres:
image: postgres:11.14
user: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- db-data:/var/lib/postgresql/data
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
nginx:
image: nginx:1.24.0
ports:
- 127.0.0.1:8880:8888
volumes:
- ${SOURCE_DIRECTORY}/docker/nginx.conf:/etc/nginx/nginx.conf:ro
- ${SOURCE_DIRECTORY}/frontend:/frontend:ro
anime-rss-devel:
image: $USER-devel
build:
dockerfile: docker/Dockerfile
target: anime-rss-devel
args:
- USER=$USER
# UID is a bash variable, not an environment variable. Make sure to define it
# explicitly before building the image or use the .env file.
- UID=${UID:-1000}
working_dir: $SOURCE_DIRECTORY
volumes:
- $SOURCE_DIRECTORY:$SOURCE_DIRECTORY
- home-data:/home/$USER/
- $HOME/.ssh/:/home/$USER/.ssh:ro
- ${SSH_AUTH_SOCK:-/tmp/no-auth}:${SSH_AUTH_SOCK:-/tmp/no-auth}
environment:
- SSH_AUTH_SOCK=${SSH_AUTH_SOCK:-/tmp/no-auth}
depends_on:
- postgres
- nginx
# We want to run this image in infinite loop to ba able to attach to it
# without the need to run ugly run command first.
# `docker compose run --use-aliases --service-ports devel`
# With the infinite command we can just do `docker compose exec`.
command: sleep infinity
opentelemetry-collector:
image: otel/opentelemetry-collector-contrib:0.75.0
volumes:
- ./docker/otel-collector-config.yml:/etc/otel-collector-config.yml
command: [ "--config=/etc/otel-collector-config.yml" ]
depends_on:
- loki
- tempo
- prometheus
loki:
image: grafana/loki:2.8.0
volumes:
- ./docker/loki.yaml:/etc/loki/local-config.yaml
command: [ "-config.file=/etc/loki/local-config.yaml" ]
user: "1000:1000"
tempo:
image: grafana/tempo:2.0.1
command: [ "-config.file=/etc/tempo.yaml" ]
volumes:
- ./docker/tempo.yaml:/etc/tempo.yaml
prometheus:
image: prom/prometheus:v2.43.0
command: [ "--config.file=/etc/prometheus.yaml", "--web.enable-remote-write-receiver" ]
volumes:
- ./docker/prometheus.yaml:/etc/prometheus.yaml
grafana:
image: grafana/grafana:9.4.7
ports:
- "127.0.0.1:3000:3000"
volumes:
- ./docker/grafana-provisioning/:/etc/grafana/provisioning
- ./docker/grafana.ini/:/etc/grafana/grafana.ini
depends_on:
- loki
- tempo
- prometheus
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: admin
volumes:
db-data:
# To store user history and some other tool user specific data
home-data: