Skip to content

Commit

Permalink
Merge pull request #194 from wearepal/cvat
Browse files Browse the repository at this point in the history
Add CVAT docker images
  • Loading branch information
paulthatjazz authored Nov 10, 2023
2 parents 252eee0 + b887310 commit 4950326
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 20 deletions.
10 changes: 10 additions & 0 deletions Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,13 @@ $LMTADDRESS {
encode gzip
log
}

$ANNOADDRESS {

reverse_proxy cvat:80 {
lb_try_duration 30s
}

encode gzip
log
}
53 changes: 33 additions & 20 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,46 @@ services:
caddy:
image: caddy:2
configs:
- source: caddyfile
target: /etc/caddy/Caddyfile
- source: caddyfile
target: /etc/caddy/Caddyfile
ports:
- target: 80
published: 80
protocol: tcp
mode: ingress
- target: 443
published: 443
protocol: tcp
mode: ingress
- target: 80
published: 80
protocol: tcp
mode: ingress
- target: 443
published: 443
protocol: tcp
mode: ingress
volumes:
- caddy:/data
- caddy:/data

db:
image: postgres:14
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- postgres:/var/lib/postgresql/data
- postgres:/var/lib/postgresql/data

geoserver:
image: docker.osgeo.org/geoserver:2.21.2
environment:
- GEOSERVER_CSRF_WHITELIST=landscapes.wearepal.ai
- EXTRA_JAVA_OPTS=-Xmx10g
volumes:
- geoserver:/opt/geoserver_data
- geoserver:/opt/geoserver_data

queue:
image: redis:7
command: redis-server --appendonly yes
volumes:
- redis_queue:/data
- redis_queue:/data

migration:
image: "wearepal/landscapes:${VERSION}"
command: bin/run-migrations
secrets:
- secret_key_base
- secret_key_base
deploy:
restart_policy:
condition: none
Expand All @@ -55,9 +55,9 @@ services:
options:
max-size: "1G"
secrets:
- secret_key_base
- secret_key_base
volumes:
- storage:/app/storage
- storage:/app/storage

worker:
image: "wearepal/landscapes:${VERSION}"
Expand All @@ -68,9 +68,21 @@ services:
options:
max-size: "1G"
secrets:
- secret_key_base
- secret_key_base
volumes:
- storage:/app/storage

cvat_server:
image: cvat/server:v2.8.2
ports:
- 8080:8080
volumes:
- storage:/app/storage
- cvat_data:/opt/cvat_data

cvat:
image: cvat/ui:v2.8.2
ports:
- 80:80

configs:
caddyfile:
Expand All @@ -88,3 +100,4 @@ volumes:
postgres:
redis_queue:
storage:
cvat_data:

0 comments on commit 4950326

Please sign in to comment.