-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose.yml
51 lines (48 loc) · 1.33 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: "3.7"
services:
api:
build:
context: .
dockerfile: dev_api.Dockerfile
depends_on:
- postgresql
- elasticsearch
- redis
ports:
- 6543:6543
environment:
db_host: 'postgresql'
tests_db_host: 'postgresql'
elasticsearch_host: 'elasticsearch'
tests_elasticsearch_host: 'elasticsearch'
redis_url: 'redis://redis:6379/'
version: ''
volumes:
- ./alembic_migration:/var/www/alembic_migration
- ./c2corg_api:/var/www/c2corg_api
- ./Makefile:/var/www/Makefile
- ./common.ini.in:/var/www/common.ini.in
- ./development.ini.in:/var/www/development.ini.in
- ./test.ini.in:/var/www/test.ini.in
- ./pytest.ini:/var/www/pytest.ini
command: make -f config/docker-dev serve
links:
- postgresql
- elasticsearch
- redis
postgresql:
image: docker.io/c2corg/c2corg_pgsql:anon-2018-11-02
environment:
PGDATA: '/c2corg_anon'
volumes:
- ./docker-compose/pgsql-settings.d/:/c2corg_anon/pgsql-settings.d/
- .:/v6_api
elasticsearch:
image: 'docker.io/c2corg/c2corg_es:anon-2018-11-02'
ports:
- 9200:9200
command: -Des.index.number_of_replicas=0 -Des.path.data=/c2corg_anon -Des.script.inline=true
redis:
image: 'docker.io/redis:3.2'
ports:
- 6379:6379