File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed
Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ RUN VERSION="$(download.sh --output - \
1313 && download.sh --name traccar-server.zip \
1414 "https://github.com/traccar/traccar/releases/download/$VERSION/traccar-other-${VERSION#v}.zip" \
1515 && compress.sh --decompress traccar-server.zip \
16+ && mkdir override \
1617 && rm traccar-server.zip conf/traccar.xml README.txt
1718
1819FROM madebytimo/java
Original file line number Diff line number Diff line change 1- v0.1.0
1+ v0.1.1
Original file line number Diff line number Diff line change 1- version : " 3.8"
2-
31x-templates :
42 template-service : &template-service
53 restart : unless-stopped
6- pull_policy : always
4+ pull_policy : ${PULL_POLICY:-always}
5+ mem_limit : 2G
6+ logging :
7+ driver : " json-file"
8+ options :
9+ max-size : " 10m"
10+ max-file : " 3"
711
812services :
913
@@ -13,6 +17,7 @@ services:
1317 build : .
1418 depends_on :
1519 - traccar-server-database
20+ mem_limit : 1G
1621 environment :
1722 - DATABASE_PASSWORD=secret
1823 - DATABASE_URL=postgresql://traccar-server-database/database
@@ -30,12 +35,13 @@ services:
3035
3136 traccar-server-database :
3237 << : *template-service
33- image : postgres:16
38+ image : postgres:18
39+ mem_limit : 500M
3440 environment :
3541 - POSTGRES_DB=database
3642 - POSTGRES_PASSWORD=secret
3743 - POSTGRES_USER=traccar
3844 volumes :
39- - ./data-local/database:/var/lib/postgresql/data
45+ - ./data-local/database:/var/lib/postgresql
4046 expose :
4147 - " 5432"
You can’t perform that action at this time.
0 commit comments