-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (43 loc) · 986 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (43 loc) · 986 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
39
40
41
42
43
44
version: '3.3'
services:
db:
image: postgres:12.4
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./.env
api:
build:
context: .
dockerfile: Dockerfile
command: bash -c "cp templates/arial.ttf static/admin/fonts/ && python manage.py makemigrations && python manage.py migrate --noinput && gunicorn probe_fab.wsgi:application --bind 0.0.0.0:8000"
restart: always
env_file:
- ./.env
depends_on:
- db
volumes:
- static_value:/probe/static/
- media_value:/probe/media/
nginx:
image: nginx:1.19.3
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- static_value:/var/html/static/
- media_value:/var/html/media/
depends_on:
- api
rabbitmq:
image: rabbitmq
ports:
- 5672:5672
- 15672:15672
depends_on:
- api
volumes:
postgres_data:
static_value:
media_value: