-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
100 lines (98 loc) · 2.4 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
version: '3.8'
name: spacetraders-again
services:
app:
depends_on:
- redis
- influxdb
- seq
image: spacetradersagain
build:
context: .
dockerfile: ./Dockerfile
environment:
REDIS_HOST: redis
SEQ_HOST: seq
INFLUX_URL: http://influxdb:8086
INFLUX_TOKEN: '${INFLUX_TOKEN}'
INFLUX_ORG: my-org
INFLUX_BUCKET: my-bucket
POSTGRES_USER: '${POSTGRES_USER}'
POSTGRES_PASSWORD: '${POSTGRES_PASSWORD}'
POSTGRES_DB: '${POSTGRES_DB}'
ports:
- 3000:3000
command: npm start -- start
profiles: ['prod']
influxdb:
ports:
- 8086:8086
volumes:
- $PWD/data/influx-data:/var/lib/influxdb2
- $PWD/data/influx-config:/etc/influxdb2
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=my-user
- DOCKER_INFLUXDB_INIT_PASSWORD=my-password
- DOCKER_INFLUXDB_INIT_ORG=my-org
- DOCKER_INFLUXDB_INIT_BUCKET=my-bucket
image: influxdb:2
restart: unless-stopped
grafana:
image: grafana/grafana-enterprise
restart: unless-stopped
environment:
# increases the log level from info to debug
- GF_LOG_LEVEL=debug
ports:
- '3001:3000'
volumes:
- 'grafana_storage:/var/lib/grafana'
redis:
hostname: redis
image: redis:alpine
restart: unless-stopped
ports:
- '6379:6379'
volumes:
- 'redis_storage:/data'
redis-commander:
depends_on:
- redis
hostname: redis-commander
image: rediscommander/redis-commander:latest
restart: always
environment:
- REDIS_HOSTS=local:redis:6379 # note: this has to be the port the redis container exposes.
ports:
- '8081:8081'
seq:
restart: unless-stopped
environment:
- ACCEPT_EULA=Y
- SEQ_FIRSTRUN_ADMINUSERNAME=stafford
- SEQ_FIRSTRUN_ADMINPASSWORDHASH=${SEQ_PASSWORD}
volumes:
- $PWD/data/seq:/data
ports:
- 5341:80
image: datalust/seq
postgres:
image: postgres:15
ports:
- '5432:5432'
restart: unless-stopped
volumes:
- $PWD/data/postgres:/var/lib/postgresql/data
environment:
POSTGRES_USER: '${POSTGRES_USER}'
POSTGRES_PASSWORD: '${POSTGRES_PASSWORD}'
POSTGRES_DB: '${POSTGRES_DB}'
adminer:
image: adminer
restart: unless-stopped
ports:
- '8080:8080'
volumes:
grafana_storage: {}
redis_storage: {}