-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathdocker-compose.ci.yml
34 lines (33 loc) · 1.03 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
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
version: '2'
services:
lando-api:
# Assume whatever image is being used for testing has been tagged
# as mozilla/landoapi.
image: mozilla/landoapi
environment:
- DATABASE_URL=postgresql://postgres:[email protected]/lando_api_dev
- ENV=localdev
- CACHE_REDIS_HOST=redis.cache
- PHABRICATOR_UNPRIVILEGED_API_KEY=api-0123456789012345678901234567
# So we can write to the volume.
user: root
volumes:
- lando_test_results:/test_results
depends_on:
- lando-api.db
- redis.cache
lando-api.db:
image: postgres:alpine
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=postgres
volumes:
- database_init:/docker-entrypoint-initdb.d/
redis.cache:
image: redis:3.2-alpine # Elasticache version.
volumes:
database_init:
lando_test_results: