-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 926 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (35 loc) · 926 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
services:
backend:
build:
context: ./backend
image: django_backend
container_name: django_backend
env_file:
- ./backend/.env
restart: unless-stopped
command: uwsgi --socket 0.0.0.0:8001 --protocol uwsgi --module backend.wsgi:application --uid django_user --gid django_user
volumes:
- ./backend/media:/app/media
nginx:
build:
context: ./frontend
container_name: nginx_proxy
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/:/etc/nginx/conf.d/:ro
- ./certbot/conf:/etc/letsencrypt/:ro
- ./certbot/www:/var/www/certbot/:ro
- ./backend/media:/usr/share/nginx/media
depends_on:
- backend
certbot:
profiles: [certbot]
image: certbot/certbot:latest
volumes:
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www/:/var/www/certbot/:rw
depends_on:
- nginx