This repository has been archived by the owner on Aug 11, 2019. It is now read-only.
forked from thunderstore-io/Thunderstore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
78 lines (68 loc) · 1.9 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: '3.7'
services:
db:
image: postgres:10.4-alpine
restart: always
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- db-data:/var/lib/postgresql/data
redis:
image: redis:5.0.4-alpine3.9
restart: always
command: --maxmemory 200mb --maxmemory-policy allkeys-lru
django:
build:
context: .
dockerfile: ./Dockerfile
restart: always
command: /bin/bash /app/docker-entrypoint.sh
environment:
DATABASE_URL: ${DATABASE_URL}
SECRET_KEY: ${SECRET_KEY}
ALLOWED_HOSTS: ${ALLOWED_HOSTS}
DEBUG: ${DEBUG}
DEBUG_SIMULATED_LAG: ${DEBUG_SIMULATED_LAG}
SERVER_NAME: ${SERVER_NAME}
PROTOCOL: ${PROTOCOL}
SOCIAL_AUTH_DISCORD_KEY: ${SOCIAL_AUTH_DISCORD_KEY}
SOCIAL_AUTH_DISCORD_SECRET: ${SOCIAL_AUTH_DISCORD_SECRET}
SOCIAL_AUTH_GITHUB_KEY: ${SOCIAL_AUTH_GITHUB_KEY}
SOCIAL_AUTH_GITHUB_SECRET: ${SOCIAL_AUTH_GITHUB_SECRET}
GS_BUCKET_NAME: ${GS_BUCKET_NAME}
GS_PROJECT_ID: ${GS_PROJECT_ID}
GS_CREDENTIALS: ${GS_CREDENTIALS}
GS_LOCATION: ${GS_LOCATION}
B2_KEY_ID: ${B2_KEY_ID}
B2_KEY: ${B2_KEY}
B2_BUCKET_ID: ${B2_BUCKET_ID}
B2_LOCATION: ${B2_LOCATION}
B2_FILE_OVERWRITE: ${B2_FILE_OVERWRITE}
REDIS_URL: ${REDIS_URL}
DB_CLIENT_CERT: ${DB_CLIENT_CERT}
DB_CLIENT_KEY: ${DB_CLIENT_KEY}
DB_SERVER_CA: ${DB_SERVER_CA}
SENTRY_DSN: ${SENTRY_DSN}
ports:
- 127.0.0.1:80:8000
depends_on:
- db
- redis
volumes:
- django-data:/app/var
- ./django:/app
- built-static:/app/static_built:ro
builder:
build:
context: .
dockerfile: ./docker/builder.Dockerfile
restart: always
volumes:
- ./builder:/app/
- built-static:/app/build/
volumes:
db-data:
django-data:
built-static: