Skip to content

Commit 3c1233c

Browse files
committed
add override directory
1 parent fe0c670 commit 3c1233c

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

1819
FROM madebytimo/java

Version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.1.0
1+
v0.1.1

docker-compose-dev.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
version: "3.8"
2-
31
x-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

812
services:
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"

0 commit comments

Comments
 (0)