forked from LibraryOfCongress/concordia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
83 lines (76 loc) · 1.96 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
version: '3.6'
services:
elasticsearch:
restart: unless-stopped
image: elasticsearch:6.7.0
ports:
- 9200:9200
redis:
restart: unless-stopped
image: redis:latest
hostname: redis
ports:
- 63791:6379
db:
restart: unless-stopped
image: postgres
environment:
POSTGRES_PASSWORD: ${POSTGRESQL_PW}
POSTGRES_USER: concordia
POSTGRES_MULTIPLE_DATABASES: test_concordia
ports:
- 54323:5432
volumes:
- ./postgresql:/docker-entrypoint-initdb.d
- db_volume:/var/lib/postgresql/data/
app:
restart: unless-stopped
build: .
environment: &django-environment
WAIT_HOSTS: db:5432, redis:6379
POSTGRESQL_HOST: db
POSTGRESQL_PW: ${POSTGRESQL_PW}
CONCORDIA_ENVIRONMENT: development
DJANGO_SETTINGS_MODULE: ${DJANGO_SETTINGS_MODULE:-concordia.settings_docker}
DEBUG: ${DEBUG:-}
REDIS_ADDRESS: redis
REDIS_PORT: 6379
depends_on:
- redis
- db
volumes:
- .:/app
- images_volume:/concordia_images
networks:
- default
ports:
- 80:80
importer:
restart: unless-stopped
build:
context: .
dockerfile: importer/Dockerfile
environment: *django-environment
depends_on:
- redis
- db
networks:
- default
volumes:
- images_volume:/concordia_images
celerybeat:
restart: unless-stopped
build:
context: .
dockerfile: celerybeat/Dockerfile
environment: *django-environment
depends_on:
- redis
- db
networks:
- default
volumes:
db_volume:
images_volume:
networks:
default: