elearning/Frontend-Learner/docker-compose.yml

28 lines
735 B
YAML
Raw Normal View History

services:
learner-ui:
image: elearning-learner-ui:latest
build:
context: .
dockerfile: Dockerfile
container_name: elearning-learner-ui
restart: unless-stopped
ports:
- "3000:3000"
environment:
- NUXT_PUBLIC_API_BASE=${NUXT_PUBLIC_API_BASE:-http://192.168.1.137:4000/api}
- NUXT_PUBLIC_S3_ENDPOINT=${NUXT_PUBLIC_S3_ENDPOINT:-http://192.168.1.137:9000}
security_opt:
- apparmor=unconfined
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- elearning-network
networks:
elearning-network:
external: true