forked from Radi85/Comment
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (38 loc) · 771 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (38 loc) · 771 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
# vim: ts=2 sw=2 et :
---
version: '3.4'
services:
web:
build:
context: .
dockerfile: Dockerfile
command: python manage.py runserver 0.0.0.0:8000
ports:
- "8000:8000"
volumes:
- .:/code
networks:
- backend
depends_on:
- db
environment:
DEBUG: 'True'
SECRET_KEY: 'k&h$m@!js(n8^pv0pf15@kh90z+2pyey38jsikwvl43uh$fyog'
ALLOWED_HOSTS: '*'
DB_ENGINE: django.db.backends.postgresql
DB_HOST: db
DB_NAME: postgres
DB_PASSWORD: django-comments-dab
DB_PORT: 5432
DB_USER: postgres
db:
image: postgres:9.6
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: django-comments-dab
networks:
- backend
networks:
backend: {}
...