Skip to content
Snippets Groups Projects
docker-compose.yml 684 B
Newer Older
  • Learn to ignore specific revisions
  • jfriedli's avatar
    jfriedli committed
    # for local development
    
    jfriedli's avatar
    jfriedli committed
    services:
      mat2-web-frontend:
        build:
          context: .
    
    jfriedli's avatar
    jfriedli committed
          dockerfile: ./Dockerfile.dev
    
        environment:
    
    jfriedli's avatar
    jfriedli committed
          - MAT2_API_URL_DEV=http://localhost:5000/
    
    jfriedli's avatar
    jfriedli committed
        ports:
          - '8080:8080'
        volumes:
          - '.:/app'
    
    jfriedli's avatar
    jfriedli committed
        command: /bin/sh -c "yarn && npx quasar dev"
    
    jfriedli's avatar
    jfriedli committed
    
      mat2-web-api:
        # use latest on purpose to detect when backend changes
        image: registry.0xacab.org/jvoisin/mat2-web:latest
        ports:
    
    jfriedli's avatar
    jfriedli committed
          - 5000:8080
        security_opt:
          - no-new-privileges
        tmpfs:
          - /tmp
          - /run
          - /var/run
          - /var/cache
          - /run/uwsgi
          - /app/upload:exec,mode=777
        read_only: true