generated from aetheric-oss/svc-template-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (45 loc) · 977 Bytes
/
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
version: '3.8'
configs:
log4rs:
file: log4rs.yaml
dot-env:
file: .env
volumes:
redis-data:
services:
redis:
container_name: svc-scheduler-redis
image: redis:7.2-alpine
restart: always
command: redis-server --save 20 1 --loglevel warning
ports:
- 6379:6379
healthcheck:
test: ["CMD", "redis-cli","ping"]
interval: 2s
timeout: 1s
retries: 3
volumes:
- redis-data:/data
environment:
- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL,CONFIG
- ALLOW_EMPTY_PASSWORD=yes
web-server:
depends_on:
redis:
condition: service_healthy
extends:
file: docker-compose-base.yml
service: web-server
example:
extends:
file: docker-compose-base.yml
service: example
ut-coverage:
extends:
file: docker-compose-base.yml
service: ut-coverage
it-coverage:
extends:
file: docker-compose-base.yml
service: it-coverage