-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (51 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
54 lines (51 loc) · 1.15 KB
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
services:
db:
image: pgrouting/pgrouting:16-3.5-4.0.1
container_name: artrun-db
environment:
POSTGRES_DB: artrun
POSTGRES_USER: artrun
POSTGRES_PASSWORD: artrun
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- "5433:5432"
volumes:
- pgdata:/var/lib/postgresql/data
- ./docker/init-pgrouting.sql:/docker-entrypoint-initdb.d/init-pgrouting.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U artrun"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
container_name: artrun-redis
ports:
- "6379:6379"
volumes:
- redisdata:/data
app:
build:
context: .
dockerfile: Dockerfile
container_name: artrun-app
ports:
- "8080:8080"
environment:
DB_HOST: db
DB_PORT: 5432
DB_NAME: artrun
DB_USERNAME: artrun
DB_PASSWORD: artrun
REDIS_HOST: redis
REDIS_PORT: 6379
GEMINI_API_KEY: ${GEMINI_API_KEY:-}
SPRING_PROFILES_ACTIVE: local
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
volumes:
pgdata:
redisdata: