-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
55 lines (51 loc) · 1.35 KB
/
docker-compose.yaml
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
version: '3'
services:
skatilsya_app:
container_name: skatilsya-app
build:
context: .
dockerfile: Dockerfile
command: java -Xmx512m -Xms512m -Dspring.profiles.active=prod -jar /app/application.jar
restart: always
working_dir: /app/
healthcheck:
test: [ "CMD", "nc", "-vzw", "2", "127.0.0.1", "8080" ]
interval: 10s
timeout: 9s
retries: 3
ports:
- "8081:8080"
environment:
POSTGRES_URL: jdbc:postgresql://postgres:5432/skatilsyadb
POSTGRES_USER: skatilsya_admin
POSTGRES_PASSWORD: skatilsya_admin_password
POSTGRES_DB: skatilsyadb
volumes:
- skatilsya-app-avatars:/app/src/main/resources/user_avatar
depends_on:
- postgres
postgres:
image: postgres:14.2-alpine
container_name: skatilsya-db
restart: always
environment:
POSTGRES_USER: skatilsya_admin
POSTGRES_PASSWORD: skatilsya_admin_password
POSTGRES_DB: skatilsyadb
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
pgadmin:
image: dpage/pgadmin4:6.8
container_name: skatilsya-pgadmin
ports:
- "5050:80"
environment:
PGADMIN_DEFAULT_EMAIL: pgadmin@pgadmin.com
PGADMIN_DEFAULT_PASSWORD: admin
PGADMIN_CONFIG_SERVER_MODE: "False"
depends_on:
- postgres
volumes:
postgres:
skatilsya-app-avatars: