-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose.yml
43 lines (39 loc) · 1.19 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
version: "2"
services:
mongo:
image: mongo
ports:
- "27017"
# Uncomment this if you want to store mongo data on local data path.
# (Does not works on Mac OSX running virtualbox
# https://github.com/docker-library/mongo/issues/30)
#volumes:
# - ./data/mongo:/data/db
quokka:
restart: always
build: .
working_dir: /quokka
ports:
# "HOST:CONTAINER"
- "5000:5000"
dns:
- "8.8.8.8"
- "8.8.4.4"
volumes:
- ./quokka:/quokka
- ./media:/quokka/quokka/mediafiles
- ./local_settings.py:/quokka/quokka/local_settings.py
depends_on:
- mongo
# Uncomment below for DEBUG
#command: manage runserver --host 0.0.0.0 --reloader --debug
# uncomment below to use wait_to_start in docker
#command: sh etc/docker_wait_to_start.sh
environment:
# uncomment below to use wait_to_start in docker
#- WAIT_COMMAND=$(nc -zv mongo 27017)
#- WAIT_START_CMD=supervisor -c /etc/supervisord.conf
#- WAIT_SLEEP=3
#- WAIT_LOOPS=50
- QUOKKA_MONGODB_HOST=mongo
mem_limit: 1000000000