forked from Traversy-Media/StudyBud
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (44 loc) · 924 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (44 loc) · 924 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
services:
mysql:
container_name: mysql
image: mysql
restart: unless-stopped
ports:
- 3306:3306
- 33060:33060
volumes:
- mysql:/var/lib/mysql
env_file:
- ./mysql/.env
backend:
container_name: backend
image: ghcr.io/0xtejas/studybud:latest
build: .
restart: unless-stopped
expose:
- 8000
volumes:
- static:/usr/src/app/static
- media:/usr/src/app/media
command: gunicorn studybud.wsgi:application --bind 0.0.0.0:8000 -w 2 --access-logfile - --error-logfile -
depends_on:
- mysql
nginx:
container_name: nginx
image: nginx:custom
build: ./nginx
restart: unless-stopped
ports:
- 8000:80
volumes:
- static:/usr/src/app/static
- media:/usr/src/app/media
depends_on:
- backend
volumes:
mysql:
external: true
static:
external: true
media:
external: true