Skip to content
Snippets Groups Projects
Select Git revision
  • 010df4d8cfc7f0958fc490fe12b211ce380f9117
  • master default
  • rename_category_group
  • php8.1_deprecations
  • v1.12.1
  • v1.13
  • v1.12
  • v1.11
  • v1.10
  • v1.9
  • v1.8
  • v1.7
  • v1.6
  • v1.5
  • v1.4
  • v1.3
  • v1.2
  • v1.1
  • v1.0
19 results

Commands.txt

Blame
  • Commands.txt 644 B
    docker build -t karbach/restapi:v1 .
    docker run -d -p 8080:80 karbach/restapi:v1
    # Including ssl
    docker run -d -p 443:443 -p 80:80 karbach/restapi:v1
    docker exec -ti <container-id> /bin/bash
    # Add volume for data backup
    docker run -d -p 8081:80 -p 4433:443 -v /path/to/folder/on/host:/var/www/html/EventsAPI/data karbach/restapi:v1
    
    # Build with certificates:
    - create folder ./configs/certificates
    - add the files ./configs/certificates/ssl-cert-eventsapi.pem and ./configs/certificates/ssl-cert-eventsapi.key as certificate and key file
    - go into EventsAPI root folder and run ./build_docker.sh
    - launch the container with ./launch_docker.sh