-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (47 loc) · 1011 Bytes
/
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
version: '3'
services:
portal-app:
restart: always
build: ./
ports:
- "127.0.0.1:8000:80"
depends_on:
- postgres
- redis
environment:
- DJANGO_DATABASE_TYPE=postgres
- GITHUB_KEY
- GITHUB_SECRET
- DJANGO_ALLOWED_HOST
- DJANGO_DEBUG
- SLACK_ENDPOINT_URL
- CONTEST
volumes:
- "./log/django/:/var/log/django"
- "staticdata:/opt/app/static/"
- "mediadata:/opt/app/media/"
discard_forever:
restart: always
build: ./
depends_on:
- portal-app
environment:
- DJANGO_DATABASE_TYPE=postgres
command: python manage.py discard_forever
postgres:
restart: always
image: postgres:12-alpine
environment:
- POSTGRES_DB=isucon
- POSTGRES_USER=isucon
- POSTGRES_PASSWORD=password
volumes:
- "dbdata:/var/lib/postgresql/data"
redis:
image: redis:5.0-alpine
ports:
- "127.0.0.1:6379:6379"
volumes:
dbdata:
staticdata:
mediadata: