Skip to content
Snippets Groups Projects
docker-compose-build.yml 860 B
Newer Older
  • Learn to ignore specific revisions
  • #This file is used for testing the server. because of that, it doesn't use the release files and build the container itself
    version: '2.1'
    services:
      url_shorter:
        build: .
        volumes:
          - url_shorter_db:/app/db #Used to store the database
        ports:
          - "5000:5000"
        environment:
          - domains= #List of domains (with port if not 80/443) seperated with ";"
          - show_build_date=0 #Disable this, if you don't want to see the builddate
    
          - show_version=0 #Normaly disable this.
    
          - production=1 #Enable this, if you want to run the server in production
          - url_scheme=https #If you use a reverse Proxy with https set this to https
          - recaptcha_private= #Please enter here your private Key for google recaptcha
          - recaptcha_public= #Please enter here your public Key for google recaptcha
    volumes:
      url_shorter_db: