-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.e2e.yml
103 lines (96 loc) · 2.08 KB
/
docker-compose.e2e.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: '3.4'
services:
api:
env_file:
- .env
depends_on:
- db
- opensearch
- redis
build:
context: .
dockerfile: Dockerfile.e2e
volumes:
- .:/app
ports:
- 8100:8100
expose:
- 8100
command: /app/start-e2e.sh
entrypoint: dockerize -wait tcp://db:5432
stdin_open: true
tty: true
celery:
build: .
volumes:
- .:/app
env_file: .env
links:
- db
- redis
depends_on:
- api
- db
- opensearch
- redis
entrypoint: dockerize -wait tcp://db:5432 -wait tcp://api:8100
command: celery -A api.conf worker -l info
celery-scheduler:
build: .
volumes:
- .:/app
env_file: .env
links:
- db
- redis
depends_on:
- api
- db
- opensearch
- redis
entrypoint: dockerize -wait tcp://db:5432 -wait tcp://api:8100
command: celery -A api.conf beat
db:
image: gcr.io/sre-docker-registry/lite-db:latest
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_DB=lite-api
expose:
- 5432
ports:
- 5462:5432
# opensearch Docker Images: https://hub.docker.com/r/opensearchproject/opensearch
opensearch:
image: opensearchproject/opensearch:2.14.0
container_name: opensearch
environment:
- cluster.name=cluster-001
- node.name=node-001
- discovery.type=single-node
- bootstrap.memory_lock=true
- DISABLE_INSTALL_DEMO_CONFIG=true # Prevents execution of bundled demo script which installs demo certificates and security configurations to OpenSearch
- DISABLE_SECURITY_PLUGIN=true # Disables security plugin
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
- opensearch-data:/usr/share/opensearch/data
ports:
- 9200:9200
- 9300:9300
redis:
image: "redis:5-alpine"
container_name: redis
expose:
- 6379
ports:
- 6379:6379
volumes:
opensearch-data:
driver: local