-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathdocker-compose.yml
49 lines (44 loc) · 1.39 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
version: "3"
services:
app:
restart: unless-stopped
env_file: .env
environment:
POSTGRES_PASSWORD: "${POSTGRES_PW}"
REDIS_ENDPOINT: "${REDIS_ENDPOINT:-redis:6379}"
DJANGO_DB_TYPE: "${DJANGO_DB_TYPE:-postgres}"
DJANGO_DB_HOST: "${DJANGO_DB_HOST:-db}"
DJANGO_DB: "${DJANGO_DB:-tau_db}"
DJANGO_DB_USER: "${DJANGO_DB_USER:-tau_db}"
DJANGO_DB_PW: "${DJANGO_DB_PW}"
DJANGO_CONFIGURATION: "${DJANGO_CONFIGURATION:-Local}"
PROTOCOL: "${PROTOCOL:-http:}"
PUBLIC_URL: "${PUBLIC_URL:-localhost}"
USE_NGROK: "${USE_NGROK:-True}"
PORT: "${PORT:-8000}"
TWITCH_WEBHOOK_SECRET: "${TWITCH_WEBHOOK_SECRET}"
DEBUG_TWITCH_CALLS: "${DEBUG_TWITCH_CALLS:-False}"
depends_on:
- db
- redis
build:
context: .
ports:
- ${PORT:-8000}:${PORT:-8000}
db:
image: postgres:13-alpine
restart: unless-stopped
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: ${POSTGRES_PW}
DJANGO_DB: ${DJANGO_DB:-tau_db}
DJANGO_DB_USER: ${DJANGO_DB_USER:-tau_db}
DJANGO_DB_PW: ${DJANGO_DB_PW}
# Add "forwardPorts": ["5432"] to **devcontainer.json** to forward PostgreSQL locally.
# (Adding the "ports" property to this file will not forward from a Codespace.)
redis:
image: redis:6-alpine
restart: unless-stopped
volumes:
postgres-data: