-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
64 lines (64 loc) · 1.64 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
version: "3"
services:
api:
build:
context: .
ports:
- "8000:8000"
volumes:
- ./trade_remedies_api:/app/
- ./requirements.in:/app/requirements.in/
- ./requirements:/app/requirements/
env_file:
- local.env
command: python manage.py runserver 0.0.0.0:8000
environment:
- DJANGO_SETTINGS_MODULE=config.settings.local
celery:
build:
context: .
command: celery -A config worker -l DEBUG
volumes:
- ./trade_remedies_api:/app/
env_file:
- local.env
environment:
- DJANGO_SETTINGS_MODULE=config.settings.local
- DATABASE_URL=psql://postgres:postgres@postgres:5432/trade_remedies
apitest:
build:
context: .
ports:
- "8003:8000"
volumes:
- ./trade_remedies_api:/app/
env_file:
- local.env
command: python manage.py runserver 0.0.0.0:8000
environment:
- DJANGO_SETTINGS_MODULE=config.settings.bdd
- DATABASE_URL=psql://postgres:postgres@postgres:5432/trade_remedies_api_test
postgres:
image: postgres:12
ports:
- "5432:5432"
volumes:
- ./setup/init.sql:/docker-entrypoint-initdb.d/init.sql
- ./postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: trade_remedies
POSTGRES_PASSWORD: postgres
redis:
image: redis:alpine
ports:
- "6379:6379"
opensearch:
image: opensearchproject/opensearch:2.13.0
restart: unless-stopped
ports:
- "9200:9200"
- "9300:9300"
environment:
- discovery.type=single-node
- plugins.security.disabled=true
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=odR$YG8t$fcLe5X3