-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
63 lines (59 loc) · 1.61 KB
/
docker-compose-dev.yml
File metadata and controls
63 lines (59 loc) · 1.61 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
version: '3.9'
volumes:
postgres_data:
services:
storage:
image: 'postgres:15.3'
container_name: kp-storage
restart: always
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- ${POSTGRES_PORT}:5432
healthcheck:
test: [ 'CMD-SHELL', 'su postgres', '&&', 'pg_isready' ]
interval: 5s
timeout: 5s
retries: 20
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
kpoint-back:
build:
context: ./kpoint-back
dockerfile: Dockerfile_dev
container_name: kpoint-back
ports:
- ${SERVER_PORT}:${SERVER_PORT}
environment:
SERVER_PORT: ${SERVER_PORT}
DB_URL: ${DB_URL}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
JWT_SECRET: ${JWT_SECRET}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET}
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
OAUTH2_REDIRECT_URI: ${OAUTH2_REDIRECT_URI}
MAIL_PASSWORD: ${MAIL_PASSWORD}
MAIL_USERNAME: ${MAIL_USERNAME}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
BUCKET_NAME: ${BUCKET_NAME}
FOLDER_NAME: ${FOLDER_NAME}
ENCRYPTOR_SECRET: ${ENCRYPTOR_SECRET}
# healthcheck:
# test:
# [
# 'CMD-SHELL',
# 'curl -f http://localhost:${SERVER_PORT}/actuator/health || exit 1',
# ]
# interval: 5s
# timeout: 5s
# retries: 20
# start_period: 30s
depends_on:
storage:
condition: service_healthy
volumes:
- '/etc/localtime:/etc/localtime:ro'