forked from ci4s/label-studio
51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
version: '3.3'
|
|
|
|
services:
|
|
|
|
nginx:
|
|
image: nginx:latest
|
|
ports:
|
|
- 8080:80
|
|
depends_on:
|
|
- app
|
|
volumes:
|
|
- static:/label-studio/label_studio:rw
|
|
- ./mydata:/label-studio/data:rw
|
|
- ./deploy/nginx/${NGINX_FILE:-default.conf}:/etc/nginx/conf.d/default.conf:ro
|
|
command: nginx -g "daemon off;"
|
|
|
|
app:
|
|
stdin_open: true
|
|
tty: true
|
|
build: .
|
|
image: heartexlabs/label-studio:latest
|
|
expose:
|
|
- "8080"
|
|
depends_on:
|
|
- db
|
|
environment:
|
|
- DJANGO_DB=default
|
|
- POSTGRE_NAME=postgres
|
|
- POSTGRE_USER=postgres
|
|
- POSTGRE_PASSWORD=
|
|
- POSTGRE_PORT=5432
|
|
- POSTGRE_HOST=db
|
|
- LABEL_STUDIO_HOST=${LABEL_STUDIO_HOST:-}
|
|
volumes:
|
|
- ./mydata:/label-studio/data:rw
|
|
- static:/label-studio/label_studio:rw
|
|
command: [ "./deploy/wait-for-postgres.sh", "bash", "/label-studio/deploy/start_label_studio.sh" ]
|
|
|
|
db:
|
|
image: postgres:11.5
|
|
hostname: db
|
|
restart: always
|
|
environment:
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
|
volumes:
|
|
- ${POSTGRES_DATA_DIR:-./postgres-data}:/var/lib/postgresql/data
|
|
|
|
|
|
volumes:
|
|
static: {}
|