-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (39 loc) · 900 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (39 loc) · 900 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
version: '3'
services:
migrate:
build: .
command: python manage.py migrate --noinput
volumes:
- .:/app
user: "myuser"
collectstatic:
build: .
command: python manage.py collectstatic --noinput
volumes:
- .:/app
depends_on:
- migrate
user: "myuser"
web:
build: .
command: gunicorn --bind 0.0.0.0:8000 mira.wsgi:application
volumes:
- .:/app
- ./static:/app/static # Ensure the static files are available to the web container
- ./media:/app/media # Ensure the media files are available to the web container
ports:
- "8000:8000"
depends_on:
- collectstatic
user: "myuser"
nginx:
image: nginx:latest
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./static:/static
- ./media:/media
depends_on:
- web
user: "myuser"