-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (54 loc) · 1.3 KB
/
docker-compose.yml
File metadata and controls
58 lines (54 loc) · 1.3 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
55
56
57
58
services:
# Fluent-Bit
fluent-bit:
image: fluent/fluent-bit:latest
container_name: interview-fluent-bit
volumes:
- ./docker/fluent-bit/fluent-bit.conf:/fluent-bit/etc/fluent-bit.conf:ro
- ./docker/fluent-bit/parsers.conf:/fluent-bit/etc/parsers.conf:ro
ports:
- "24224:24224"
environment:
- ELASTIC_USERNAME=${ELASTIC_USERNAME}
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
networks:
- logging-network
# PostgreSQL
postgres:
image: postgres:17
container_name: interview-postgres
ports:
- "${POSTGRES_PORT}:5432"
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- postgres-data:/var/lib/postgresql/data
# Spring Boot Application
app:
build:
context: .
dockerfile: Dockerfile
container_name: interview-api
ports:
- "7300:7300"
env_file:
- .env
environment:
- SPRING_PROFILES_ACTIVE=prod
- TZ=Asia/Seoul
depends_on:
- fluent-bit
- postgres
logging:
driver: fluentd
options:
fluentd-address: localhost:24224
tag: interview-service
fluentd-async: "true"
volumes:
postgres-data:
networks:
logging-network:
external: true