-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (50 loc) · 1.55 KB
/
docker-compose.yml
File metadata and controls
58 lines (50 loc) · 1.55 KB
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
version: '3'
services:
db:
restart: always
image: postgres
ports:
- 5432:5432
volumes:
- /var/dormportal/db:/var/lib/postgresql/data
environment:
POSTGRES_DB: $POSTGRES_DB
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
api:
build:
context: .
dockerfile: ./Dockerfile
#args:
# API_BASE_URL: $API_BASE_URL
#command: sh -c "memcached -d -u root -s /tmp/memcached.sock && gunicorn --bind 0.0.0.0:8000 coretabs.wsgi --timeout 90 --log-level=DEBUG --daemon && celery worker -A coretabs -P solo --loglevel=INFO -n worker.%%h."
#command: sh -c "tail -f /dev/null"
command: sh -c "crond && gunicorn --bind 0.0.0.0:8000 api.wsgi --timeout 90 --log-level=DEBUG"
volumes:
- /var/dormportal/media:/dormportal/app/media
# - ./src/api/venv/:/djangoapp/venv/
environment:
HOST_ENV: $HOST_ENV
ALLOWED_HOSTS: $ALLOWED_HOSTS
BASE_URL: $BASE_URL
DATABASE_URL: $DATABASE_URL
DEBUG: $DEBUG
DEFAULT_FROM_EMAIL: $DEFAULT_FROM_EMAIL
EMAIL_HOST: $EMAIL_HOST
EMAIL_HOST_PASSWORD: $EMAIL_HOST_PASSWORD
EMAIL_HOST_USER: $EMAIL_HOST_USER
IS_ALWAYS_REVIEWABLE: $IS_ALWAYS_REVIEWABLE
LANGUAGES: $LANGUAGES
SECRET_KEY: $SECRET_KEY
links:
- db:db
ports:
- "8000:8000"
nginx:
image: nginx:1.15.3-alpine
container_name: production_nginx
ports:
- 80:80
volumes:
- ./nginx.conf:/etc/nginx/conf.d/dormportal.conf
- /var/dormportal/media:/var/dormportal/media