-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (32 loc) · 919 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (32 loc) · 919 Bytes
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
services:
backend:
build:
dockerfile: Dockerfile
container_name: pandemic-backend
environment:
SPRING_PROFILES_ACTIVE: ${SPRING_PROFILES_ACTIVE}
DATABASE_HOST: database
DATABASE_PORT: 5432
DATABASE_NAME: ${DATABASE_NAME}
DATABASE_USERNAME: ${DATABASE_USERNAME}
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
CORS_ALLOWED_ORIGINS: ${CORS_ALLOWED_ORIGINS}
JWT_ISSUER_URIS: ${JWT_ISSUER_URIS}
ACCESS_TOKEN_SECRET_KEY: ${ACCESS_TOKEN_SECRET_KEY}
ports:
- "8080:8080"
depends_on:
- database
database:
image: postgres:17.4
container_name: pandemic-database
environment:
POSTGRES_USER: ${DATABASE_USERNAME}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_DB: ${DATABASE_NAME}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "${DATABASE_PORT}:5432"
volumes:
postgres_data: