-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (51 loc) · 1.11 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
services:
web:
image: ghcr.io/studi-bars/website/django-app:main
build:
context: .
volumes:
- static_volume:/app/staticfiles
- media_volume:/app/uploads
expose:
- 8000
environment:
DJANGO_SECRET_KEY: ${DJANGO_SECRET_KEY}
DJANGO_DEBUG: ${DJANGO_DEBUG}
SQL_ENGINE: django.db.backends.postgresql
SQL_DATABASE: studi-bars
SQL_USER: django
SQL_PASSWORD: studi-bars
SQL_HOST: db
SQL_PORT: 5432
DATABASE: postgres
REDIS_HOST: redis
REDIS_PORT: 6379
depends_on:
- db
- redis
db:
image: postgres:15
environment:
POSTGRES_USER: django
POSTGRES_PASSWORD: studi-bars
POSTGRES_DB: studi-bars
volumes:
- postgres_data:/var/lib/postgresql/data/
redis:
image: redis:latest
expose:
- 6379
nginx:
image: ghcr.io/studi-bars/website/nginx:main
build: ./nginx
volumes:
- static_volume:/app/staticfiles
- media_volume:/app/uploads
ports:
- 8003:80
depends_on:
- web
volumes:
postgres_data:
static_volume:
media_volume: