12345678910111213141516171819202122232425262728293031323334 |
- version: "3.7"
-
- services:
- zitap:
- container_name: django
- build: .
-
- restart: on-failure
- environment:
- DJANGO_SECRET_KEY: <SECRET_KEY>
- DJANGO_DEBUG: "False"
- DJANGO_ALLOWED_HOSTS: <IP>,<DOMAIN>,localhost
- DJANGO_CSRF_TRUSTED_ORIGINS: <DOMAIN>
- DATABASE_ENGINE: mysql
- DATABASE_NAME: django
- DATABASE_USERNAME: <USERNAME>
- DATABASE_PASSWORD: <PASSWORD>
- DATABASE_HOST: <IP>
- 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"]
|