-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (55 loc) · 1.16 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
50
51
52
53
54
55
56
57
58
services:
postgres:
image: bitnami/postgresql:latest
container_name: postgres
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
POSTGRES_DB: ecoplus
ports:
- "5432:5432"
networks:
- default
volumes:
- postgres_ecoplus_data:/db/postgresql/data
deploy:
resources:
limits:
memory: 512M
reservations:
memory: 256M
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: ecoplus
ports:
- "5050:80"
depends_on:
- postgres
deploy:
resources:
limits:
memory: 512M
reservations:
memory: 256M
app:
build: .
container_name: ecoplus_app
ports:
- "8081:8080"
depends_on:
- postgres
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/ecoplus
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: root
deploy:
resources:
limits:
memory: 2G
reservations:
memory: 1G
volumes:
postgres_ecoplus_data: