Skip to content
Snippets Groups Projects
Forked from Stud.IP / Stud.IP
1901 commits behind, 76 commits ahead of the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
docker-compose.yml 1.05 KiB
version: "3"
services:
  db:
    image: mariadb:10.4
    volumes:
      - db_data:/var/lib/mysql
    command: mysqld --sql_mode=""
    restart: always
    environment:
      MYSQL_RANDOM_ROOT_PASSWORD: 1
      MYSQL_DATABASE: studip_db
      MYSQL_USER: studip_user
      MYSQL_PASSWORD: studip_password
      DEMO_DATA: 1
      MAIL_TRANSPORT: debug
  web:
    build:
      context: .
      dockerfile: ./docker/studip/Dockerfile

    depends_on:
      - db
    volumes:
      - web_data:/var/www/studip/data

    # Use port to redirect port
    ports:
      - "8032:80"

    restart: always
    environment:
      MYSQL_DATABASE: studip_db
      MYSQL_USER: studip_user
      MYSQL_PASSWORD: studip_password
      MYSQL_HOST: db
      STUDIP_MAIL_TRANSPORT: debug

      # Use automigrate to migrate your instance on startup
      AUTO_MIGRATE: 1

      # Use proxy url OR autoproxy if run behind a proxy
      # PROXY_URL: https://studip.example.com/
      # AUTO_PROXY: 1

      # Demo data for your studip instance
      DEMO_DATA: 1

volumes:
  web_data: {}
  db_data: {}