version: "3.7" services: zitap: container_name: django build: . restart: on-failure environment: DJANGO_SECRET_KEY: DJANGO_DEBUG: "False" DJANGO_ALLOWED_HOSTS: ,,localhost DJANGO_CSRF_TRUSTED_ORIGINS: DATABASE_ENGINE: mysql DATABASE_NAME: django DATABASE_USERNAME: DATABASE_PASSWORD: DATABASE_HOST: DATABASE_PORT: 3306 DATABASE_OPTIONS: "{\"init_command\": \"SET sql_mode='STRICT_TRANS_TABLES'\"}" volumes: - ./project:/app/project - ./zitap:/app/zitap - ./static:/static - ./data:/data ports: - 8000:8000 command: ["/code/production.sh"]