first commit
This commit is contained in:
35
docker-compose.yml
Normal file
35
docker-compose.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
services:
|
||||
web:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./build/Dockerfile
|
||||
container_name: django_web
|
||||
command: python manage.py runserver 0.0.0.0:8000
|
||||
dns:
|
||||
- 8.8.8.8
|
||||
- 8.8.4.4
|
||||
volumes:
|
||||
- .:/app
|
||||
- static_volume:/app/staticfiles
|
||||
- media_volume:/app/media
|
||||
ports:
|
||||
- "8200:8000"
|
||||
environment:
|
||||
- DEBUG=1
|
||||
- DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1]
|
||||
# PostgreSQL ayarları - mevcut sunucunuzu kullanıyor
|
||||
- USE_POSTGRES=True
|
||||
- POSTGRES_DB=server_dj
|
||||
- POSTGRES_USER=server_dj
|
||||
- POSTGRES_PASSWORD=1234
|
||||
- POSTGRES_HOST=10.80.80.70
|
||||
- POSTGRES_PORT=5432
|
||||
# Mac'te Docker Desktop kullanıyorsanız host.docker.internal kullanabilirsiniz
|
||||
# extra_hosts:
|
||||
# - "host.docker.internal:host-gateway"
|
||||
stdin_open: true
|
||||
tty: true
|
||||
|
||||
volumes:
|
||||
static_volume:
|
||||
media_volume:
|
||||
Reference in New Issue
Block a user