-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (35 loc) · 819 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (35 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: '3.9'
services:
# db:
# image: postgres:16
# environment:
# POSTGRES_USER: django
# POSTGRES_PASSWORD: django
# POSTGRES_DB: django
# volumes:
# - postgres_data:/var/lib/postgresql/data
# ports:
# - "5432:5432"
web:
build: .
command: >
sh -c "python manage.py migrate &&
python manage.py runserver 0.0.0.0:8000"
volumes:
- .:/app
ports:
- "8333:8000"
environment:
MODE: dev
POSTGRES_DB: django
POSTGRES_USER: django
POSTGRES_PASSWORD: django
POSTGRES_HOST: 10.0.10.102
POSTGRES_PORT: 5432
DJANGO_ALLOWED_HOSTS: "*"
DJANGO_SECRET_KEY: '59xb4shsnt$1ylfvfpu0wg$((u^)(6+fe7tc$qq(tsubt16bdy'
DJANGO_DEBUG: '1'
# depends_on:
# - db
#volumes:
# postgres_data: