-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose-db-redis.yml
54 lines (49 loc) · 1.21 KB
/
docker-compose-db-redis.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
version: '3.9'
services:
dialogporten-postgres:
image: postgres:15.7
restart: always
command: postgres -c wal_level=logical
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 2s
timeout: 20s
retries: 5
dialogporten-migrations:
build:
context: .
dockerfile: src/Digdir.Domain.Dialogporten.Infrastructure/MigrationBundle.dockerfile
environment:
- Infrastructure__DialogDbConnectionString=${DB_CONNECTION_STRING}
depends_on:
dialogporten-postgres:
condition: service_healthy
restart: "no"
dialogporten-redis:
image: redis:6.0-alpine
restart: always
ports:
- "6379:6379"
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 10s
timeout: 5s
retries: 5
dialogporten-redisinsight:
image: redis/redisinsight
ports:
- "7216:80"
environment:
RI_APP_PORT: 80
RI_APP_HOST: '0.0.0.0'
volumes:
- redisinsight_cache:/data
volumes:
redisinsight_cache:
driver: local