-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (46 loc) · 1.09 KB
/
docker-compose.yml
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
39
40
41
42
43
44
45
46
47
48
49
version: '3.7'
services:
nginx:
image: nginx:1.17
restart: always
container_name: nginx_proxy
depends_on:
- web
volumes:
- ./nginx/config:/etc/nginx/conf.d/app.conf
- ./data/static-files:/static
- ./data/media-files:/media
networks:
- web
- default
labels:
- traefik.docker.network=web
- traefik.enable=true
- traefik.frontend.rule=Host:knowledgebase.inowas.com
- traefik.port=80
- traefik.protocol=http
web:
image: inowas/knowledgebase
restart: always
command: 'bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py collectstatic --noinput && gunicorn explorer.wsgi -b 0.0.0.0:8000"'
depends_on:
- db
networks:
- default
expose:
- "8000"
volumes:
- ./src:/src
- ./data/static-files:/static
- ./data/media-files:/media
env_file:
- .env
db:
image: mdillon/postgis:10
restart: always
volumes:
- ./data/postgis-data:/var/lib/postgresql/data
networks:
web:
external:
name: web