forked from labhackercd/new-wikilegis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
98 lines (92 loc) · 2.17 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: '2.3'
services:
nginx:
image: nginx
depends_on:
- web
volumes:
- data:/var/labhacker/new-wikilegis
- ./config/etc/nginx/conf.d/:/etc/nginx/conf.d/:z
ports:
- "8000:80"
db:
image: postgres:9.6
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: wikilegis
POSTGRES_DB: root
redis:
image: redis:alpine
web:
build: .
command: ./start.sh
restart: on-failure
links:
- db
- redis
volumes:
- data:/var/labhacker/new-wikilegis
environment:
ADMIN_PASSWORD: 123
ADMIN_EMAIL: [email protected]
ADMIN_USERNAME: admin
DATABASE_ENGINE: postgresql_psycopg2
DATABASE_NAME: wikilegis
DATABASE_PASSWORD: wikilegis
DATABASE_USER: root
DATABASE_HOST: db
DATABASE_PORT: 5432
DEBUG: 'False'
COMPRESS_OFFLINE: 'True'
SITE_DOMAIN: localhost:8000
SITE_NAME: new-wikilegis
REDIS_SERVER: redis
FORCE_SCRIPT_NAME: ''
STATIC_URL: /static/
MEDIA_URL: /media/
EMAIL_BACKEND: django.core.mail.backends.console.EmailBackend
ENABLE_REMOTE_USER: 'False'
expose:
- "8000"
depends_on:
- db
- redis
celery_worker:
build: .
command: bash -c "cd src && celery -A wikilegis worker -l info"
volumes:
- data:/var/labhacker/new-wikilegis
depends_on:
- db
- redis
environment:
DEBUG: 'False'
DATABASE_ENGINE: postgresql_psycopg2
DATABASE_NAME: wikilegis
DATABASE_PASSWORD: wikilegis
DATABASE_USER: root
DATABASE_HOST: db
DATABASE_PORT: 5432
REDIS_SERVER: redis://redis:6379/0
celery-beat:
build: .
command: bash -c "cd src && celery -A wikilegis beat -l info --pidfile="
restart: on-failure
volumes:
- data:/var/labhacker/new-wikilegis
depends_on:
- db
- redis
- web
environment:
DEBUG: 'False'
DATABASE_ENGINE: postgresql_psycopg2
DATABASE_NAME: wikilegis
DATABASE_PASSWORD: wikilegis
DATABASE_USER: root
DATABASE_HOST: db
DATABASE_PORT: 5432
REDIS_SERVER: redis://redis:6379/0
volumes:
data:
driver: local