forked from SunnySt4r/ZeroApplication
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
78 lines (70 loc) · 1.79 KB
/
docker-compose.yaml
File metadata and controls
78 lines (70 loc) · 1.79 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: "3"
services:
zero_application:
image: zero_application:0.0.1
container_name: zero_application
build:
context: ./backend
dockerfile: Dockerfile
expose:
- "8080"
ports:
- "8080:8080"
depends_on:
database:
condition: service_healthy
minio:
condition: service_started
environment:
SERVER_PORT: ${SERVER_PORT}
SERVER_ADDRESS: ${SERVER_ADDRESS}
SPRING_DATASOURCE_URL: ${SPRING_DATASOURCE_URL}
MINIO_URL: ${MINIO_URL}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
database:
image: postgres:14-alpine3.18
container_name: database
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_INITDB_ARGS: ${POSTGRES_INITDB_ARGS}
ports:
- "15432:5432"
volumes:
- zero-application-db:/data/postgres
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U user -d database" ]
interval: 5s
retries: 5
timeout: 10s
minio:
image: minio/minio:latest
container_name: minio
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
volumes:
- ./environment/minio/data:/data
ports:
- "9000:9000"
- "9001:9001"
command: server /data --console-address :9001
frontend:
image: zero_app_front:0.0.1
container_name: zero_app_front
build:
context: ./front
dockerfile: Dockerfile
target: build
volumes:
- ./src:/app/src
ports:
- "3000:3000"
volumes:
zero-application-db:
storage-minio: