-
-
Notifications
You must be signed in to change notification settings - Fork 68
/
docker-compose.yml
84 lines (79 loc) · 1.65 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
version: '2.4'
services:
influx:
command: 'influxd run --bolt-path /var/lib/influxdb2/influxd.bolt --engine-path /var/lib/influxdb2/engine --store bolt'
container_name: influxdb
image: 'influxdb:2.7-alpine'
networks:
- skyra
ports:
- '8285:8086'
restart: always
volumes:
- 'influx-data:/var/lib/influxdb2'
logging:
options:
max-size: '10m'
max-file: '3'
postgres:
container_name: postgres
image: 'postgres:15-alpine'
networks:
- skyra
ports:
- '5432:5432'
restart: always
volumes:
- 'postgres-data:/var/lib/postgresql/data'
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=skyra
logging:
options:
max-size: '20m'
max-file: '3'
healthcheck:
test: ['CMD-SHELL', 'pg_isready']
interval: 30s
timeout: 60s
retries: 5
start_period: 80s
redis:
command: 'redis-server --port 8287 --requirepass redis'
container_name: redis
image: 'redis:alpine'
networks:
- skyra
ports:
- '8287:8287'
restart: always
logging:
options:
max-size: '20m'
max-file: '3'
skyra:
build: ./
container_name: skyra
depends_on:
- influx
- postgres
env_file:
- src/.env.development
- src/.env.development.local
image: ghcr.io/skyra-project/skyra:latest
networks:
- skyra
ports:
- '8282:8282'
restart: always
tty: true
logging:
options:
max-size: '1g'
max-file: '3'
volumes:
postgres-data:
influx-data:
networks:
skyra: