-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose-prod.yml
51 lines (50 loc) · 1.05 KB
/
docker-compose-prod.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
50
51
version: "3.7"
services:
django:
build: .
command: gunicorn murr_back.wsgi:application --bind 0.0.0.0:8000
env_file:
- .env
depends_on:
- db
expose:
- 8000
volumes:
- static_volume:/home/murrengan/staticfiles
- ./media:/home/murrengan/media
db:
image: postgres:11
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=murr_postgres_user
- POSTGRES_PASSWORD=murr_postgres_password
- POSTGRES_DB=murr_postgres_bd
nginx:
image: nginx:mainline-alpine
ports:
- 80:80
- 443:443
volumes:
- static_volume:/home/murrengan/staticfiles
- ./media:/home/murrengan/media
- ./dist:/home/murrengan/murr_front/dist
- ./nginx:/etc/nginx/conf.d
depends_on:
- django
redis:
image: redis:latest
bot:
build:
context: ./
dockerfile: Dockerfile_bot
command: python manage.py bot
env_file:
- .env
depends_on:
- db
volumes:
postgres_data:
static_volume:
media:
dist: