forked from sb02-monew-team4/sb02-monew-team4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (36 loc) · 910 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (36 loc) · 910 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
35
36
37
38
39
40
version: '3.8'
services:
db:
image: postgres:17
container_name: monew-postgres
ports:
- "5432:5432"
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
- ./src/main/resources/schema.sql:/docker-entrypoint-initdb.d/schema.sql:ro
restart: always
app:
build:
context: .
dockerfile: Dockerfile
container_name: monew-app
ports:
- "8080:80"
environment:
- SPRING_PROFILES_ACTIVE=dev
- AWS_S3_ACCESS_KEY=${AWS_S3_ACCESS_KEY}
- AWS_S3_SECRET_KEY=${AWS_S3_SECRET_KEY}
- AWS_S3_REGION=${AWS_S3_REGION}
- AWS_S3_BUCKET=${AWS_S3_BUCKET}
volumes:
- binary-content:/app/storage
depends_on:
- db
restart: always
volumes:
postgres_data:
binary-content: