-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 858 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (34 loc) · 858 Bytes
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
version: "2.4"
volumes:
cmdbuild-db:
cmdbuild-tomcat:
services:
cmdbuild_db:
image: postgis/postgis:12-3.2-alpine
container_name: cmdbuild_db
volumes:
- cmdbuild-db:/var/lib/postgresql
ports:
- 5432:5432
env_file:
- .env_cmdbuild_db
restart: always
mem_limit: 1000m
mem_reservation: 300m
cmdbuild_app:
image: pvrmza/cmdbuild:r2u-2.2-3.3.2
container_name: cmdbuild_app
restart: always
links:
- cmdbuild_db
depends_on:
- cmdbuild_db
ports:
- 8090:8080
volumes:
- cmdbuild-tomcat:/usr/local/tomcat
- "./initdb:/opt/initdb"
env_file:
- .env_cmdbuild_app
mem_limit: 4000m
mem_reservation: 2000m