-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
81 lines (75 loc) · 1.67 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
services:
web:
build:
context: .
dockerfile: Dockerfile
depends_on:
- database
- redis
- idedit
- sidekiq
- prometheus_exporter
ports:
- 3000:3000
volumes:
- ./:/root/app/
- gemdata:/bundle
environment:
- RAILS_ENV=docker
- IDEDIT_URL="http://idedit:2000"
- REDIS_URL=redis
- REDIS_PORT=6379
- POSTGRES_PASSWORD
- RAILS_MASTER_KEY=0e3799f899f7863b06bdad95f0f70a5e
entrypoint: ./entrypoints/app.sh
redis:
image: redis:7.0.0-alpine
idedit:
build:
context: https://github.com/h4ppyr0gu3/idedit.git
database:
environment:
- POSTGRES_PASSWORD=postgres
image: postgres:14.2-alpine
volumes:
- pgdata:/var/lib/postgresql/data
sidekiq:
build:
context: .
dockerfile: Dockerfile
environment:
- REDIS_URL=redis
- POSTGRES_PASSWORD
- IDEDIT_URL="http://idedit:2000"
- REDIS_PORT=6379
- RAILS_MASTER_KEY=0e3799f899f7863b06bdad95f0f70a5e
depends_on:
- database
- redis
volumes:
- ./:/root/app/
- gemdata:/bundle
entrypoint: ./entrypoints/sidekiq.sh
prometheus_exporter:
build:
context: .
dockerfile: Dockerfile
environment:
- REDIS_URL=redis
- POSTGRES_PASSWORD
- IDEDIT_URL="http://idedit:2000"
- REDIS_PORT=6379
- RAILS_MASTER_KEY=0e3799f899f7863b06bdad95f0f70a5e
depends_on:
- database
- redis
volumes:
- ./:/root/app/
- gemdata:/bundle
ports:
- 9394:9394
entrypoint: ./entrypoints/prometheus_exporter.sh
volumes:
pgdata:
.:
gemdata: