-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (49 loc) · 1.15 KB
/
docker-compose.yml
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
# This configuration is intended for development purpose, it's **your** responsibility to harden it for production
version: '3.8'
services:
chn-back:
image: chn/back
environment:
- JAVA_OPTIONS=-Xmx512m -Xms256m
- SPRING_PROFILES_ACTIVE=prod
ports:
- 8080:8080
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/actuator/health" ]
interval: 60s
timeout: 20s
retries: 3
restart: unless-stopped
depends_on:
- postgresql
- minio
chn-front:
image: chn/front
restart: unless-stopped
ports:
- 80:80
depends_on:
- chn-back
postgresql:
image: postgres:14.2
hostname: postgresqldb
# volumes:
# - ~/volumes:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=chn
- POSTGRES_PASSWORD=chn
# If you want to expose these ports outside your dev PC,
# remove the "127.0.0.1:" prefix
ports:
- 5434:5432
pgadmin:
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
ports:
- "8083:80"
volumes:
data1-1:
data1-2: