-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
44 lines (40 loc) · 1.02 KB
/
docker-compose.yaml
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
services:
postgres-db:
image: postgres:16
restart: always
ports:
- 5432:5432
environment:
POSTGRES_USER: petclinic_db_user
POSTGRES_PASSWORD: petclinic_db_password
POSTGRES_DB: petclinic_db
redis-cache:
image: bitnami/redis
environment:
- REDIS_PASSWORD=some_redis_password
ports:
- 6379:6379
frontend:
build:
context: ./frontend
args:
# API_BACKEND_URL is the URL of the backend API
- API_BACKEND_URL=http://localhost:8080
ports:
- 5173:80
backend:
build: ./backend
ports:
- 8080:8080
environment:
- DATABASE_URL=jdbc:postgresql://postgres-db:5432/petclinic_db
- DATABASE_USER=petclinic_db_user
- DATABASE_PASSWORD=petclinic_db_password
- CORS_URLS=http://localhost:5173
- FEATURE_EMAIL_VERIFICATION_ENABLED=false
- CACHE_PORT=6379
- CACHE_URL=redis://redis-cache
- CACHE_PASSWORD=some_redis_password
depends_on:
- postgres-db
- redis-cache