-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
39 lines (36 loc) · 1.07 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
version: '3'
services:
db:
image: postgres
environment:
POSTGRES_PASSWORD: $BANK_POSTGRESS_PASSWORD
volumes:
- ./docker/postgres/volumes:/var/lib/postgresql/data
uwsgi:
build:
context: .
dockerfile: ./docker/django-app/Dockerfile
environment:
BANK_MODE: docker-prod
BANK_POSTGRESS_PASSWORD: $BANK_POSTGRESS_PASSWORD
BANK_SECRET_KEY: $BANK_SECRET_KEY
volumes:
- ./docker/django-app/uwsgi.ini:/usr/src/django-app/main/uwsgi.ini:ro
- ./docker/socket:/usr/src/django-app/socket
- ./docker/django-app/logs:/usr/src/django-app/logs
depends_on:
- db
entrypoint: uwsgi --ini /usr/src/django-app/main/uwsgi.ini
nginx:
image: nginx
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./django-app/main/uwsgi_params:/usr/share/nginx/uwsgi_params:ro
- ./django-app/static:/usr/share/nginx/static
- ./django-app/media:/usr/share/nginx/media
- ./docker/socket:/usr/share/nginx/socket
ports:
- 80:8080
depends_on:
- uwsgi
- db