-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.yml
55 lines (49 loc) · 1.09 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
version: '2.1'
services:
app:
platform: linux/x86_64
restart: always
build: ./
volumes:
- ioi_static:/usr/src/app/static/
- ioi_media:/usr/src/app/media/
depends_on:
- postgres
- redis
environment:
SECRET_KEY: 'secret_key_for_development_3969b4b149439648a52aa663bd740a4f'
SESSION_COOKIE_SECURE: 0
DB_HOST: postgres
DB_USER: &db_user postgres
DB_PASSWORD: &db_password postgres
DB_NAME: &db_name ioitrans
REDIS_HOST: redis
REDIS_DB: 1
GUNICORN_WORKERS: 2
LOG_HANDLERS: 'file,stderr'
nginx:
restart: always
build: ./nginx/
ports:
- 9000:80
depends_on:
- app
volumes:
- ioi_static:/usr/src/app/static/:ro
- ioi_media:/usr/src/app/media/:ro
postgres:
restart: always
image: postgres:9.6-alpine
volumes:
- ioi_pgdata:/var/lib/postgresql/data/
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: ioitrans
redis:
restart: always
image: redis:3.2-alpine
volumes:
ioi_pgdata:
ioi_static:
ioi_media: