yeni
This commit is contained in:
31
docker-compose.yml
Normal file
31
docker-compose.yml
Normal file
@ -0,0 +1,31 @@
|
||||
services:
|
||||
yonetim:
|
||||
build: ./build/
|
||||
container_name: yonetim
|
||||
restart: unless-stopped
|
||||
#command: python manage.py runserver 0.0.0.0:8000
|
||||
command: gunicorn --bind 0.0.0.0:8000 yonetim.wsgi:application
|
||||
volumes:
|
||||
- ./:/app:rw
|
||||
- /tmp:/tmp:rw
|
||||
#ports:
|
||||
# - 8025:8000
|
||||
networks:
|
||||
- proxy
|
||||
environment:
|
||||
- DEBUG=1
|
||||
privileged: true
|
||||
cap_add:
|
||||
- SYS_ADMIN
|
||||
- DAC_OVERRIDE
|
||||
labels:
|
||||
- "traefik.enable=false"
|
||||
- "traefik.http.routers.tasima.rule=Host(`habitatnakliyat.com.tr`)"
|
||||
- "traefik.http.routers.tasima.entrypoints=websecure"
|
||||
- "traefik.http.routers.tasima.tls=true"
|
||||
- "traefik.http.routers.tasima.tls.certresolver=letencrypt"
|
||||
- "traefik.http.services.tasima.loadbalancer.server.port=8000"
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
Reference in New Issue
Block a user