forked from LibraryOfCongress/concordia
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
91 lines (83 loc) · 2.43 KB
/
docker-compose.yml
File metadata and controls
91 lines (83 loc) · 2.43 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
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
### Start Docker containers with the following command :
# sudo make up
version: '3.6'
services:
db:
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/postgresl/data/
redis:
hostname: redis
image: redis:latest
ports:
- 63791:6379
app:
build: .
environment:
# The concordia app needs to wait for the db to completely start. Use docker-compose-wait
# as defined at https://github.com/ufoscout/docker-compose-wait
WAIT_HOSTS: db:5432
POSTGRESQL_HOST: db
POSTGRESQL_PW: ${POSTGRESQL_PW}
CONCORDIA_ENVIRONMENT: development
S3_BUCKET_NAME: crowd-dev-content
DJANGO_SETTINGS_MODULE: concordia.settings_docker
DEBUG: ${DEBUG:-}
depends_on:
- db
volumes:
- .:/app
- images_volume:/concordia_images
links:
- redis
ports:
- 80:80
importer:
build:
context: .
dockerfile: importer/Dockerfile
environment:
POSTGRESQL_HOST: db
POSTGRESQL_PW: ${POSTGRESQL_PW}
S3_BUCKET_NAME: crowd-dev-content
DJANGO_SETTINGS_MODULE: concordia.settings_docker
DEBUG: ${DEBUG:-}
depends_on:
- redis
- db
volumes:
- images_volume:/concordia_images
indexer:
build:
context: .
dockerfile: indexer/Dockerfile
environment:
POSTGRESQL_HOST: db
POSTGRESQL_PW: ${POSTGRESQL_PW}
ELASTICSEARCH_ENDPOINT: http://localhost:9200
DJANGO_SETTINGS_MODULE: concordia.settings_docker
DEBUG: ${DEBUG:-}
depends_on:
- db
celerybeat:
build:
context: .
dockerfile: celerybeat/Dockerfile
environment:
POSTGRESQL_HOST: db
POSTGRESQL_PW: ${POSTGRESQL_PW}
DJANGO_SETTINGS_MODULE: concordia.settings_docker
DEBUG: ${DEBUG:-}
depends_on:
- redis
- db
volumes:
db_volume:
images_volume: