-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdocker-compose.ci.yml
64 lines (61 loc) · 1.64 KB
/
docker-compose.ci.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:
db:
image: postgres:9.6@sha256:78890d2b9c6a8eb312b1c4f4ee460da1d1d16d27f94312b910fbf43a30230ba4
volumes:
- testpgdata:/var/lib/postgresql/data
environment:
- POSTGRES_USER=buildhub2
- POSTGRES_PASSWORD=buildhub2
- POSTGRES_DB=buildhub2
healthcheck:
test: ["CMD", "pg_isready", "-U", "buildhub2", "-d", "buildhub2"]
interval: 1s
timeout: 3s
retries: 30
elasticsearch:
# Intent to always match
# https://github.com/mozilla-services/cloudops-infra/blob/buildhub2/projects/buildhub2/k8s/charts/elasticsearch/values.yaml
image: docker.elastic.co/elasticsearch/elasticsearch:6.7.1
container_name: elasticsearch
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- testesdata:/usr/share/elasticsearch/data
ports:
- 9200:9200
test:
build:
context: .
dockerfile: Dockerfile
args:
- FRONTEND_SENTRY_PUBLIC_DSN
- CI
image: buildhub2
depends_on:
- db
- elasticsearch
environment:
# This tells run.sh to wait for databases to be fully up.
- DEVELOPMENT=1
- DJANGO_CONFIGURATION=Test
- DATABASE_URL=postgres://buildhub2:buildhub2@db/buildhub2
- DJANGO_ES_URLS=http://elasticsearch:9200
command: test
ui:
build:
context: .
dockerfile: ui/Dockerfile
command: build
volumes:
testesdata:
driver: local
testpgdata: