-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
51 lines (48 loc) · 1.01 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
version: '2.3'
services:
db:
image: postgres
healthcheck:
test: runuser postgres -c "pg_isready"
interval: 10s
timeout: 10s
retries: 5
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: wikilegis
POSTGRES_DB: wikilegis
nginx:
image: nginx
depends_on:
- web
volumes:
- data:/var/labhacker/wikilegis
- ./config/etc/nginx/conf.d/:/etc/nginx/conf.d/
ports:
- "8000:80"
web:
image: labhackercd/wikilegis
command: ./start.sh
restart: on-failure
links:
- db
volumes:
- data:/var/labhacker/wikilegis
environment:
ADMIN_PASSWORD: 123
ADMIN_EMAIL: [email protected]
DATABASE_ENGINE: postgresql_psycopg2
DATABASE_NAME: wikilegis
DATABASE_PASSWORD: wikilegis
DATABASE_USER: root
DATABASE_HOST: db
DATABASE_PORT: 5432
DEBUG: 'False'
expose:
- "8000"
depends_on:
db:
condition: service_healthy
volumes:
data:
driver: local