-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.lando-api.yml
77 lines (71 loc) · 2.5 KB
/
docker-compose.lando-api.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
# 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/.
services:
lando-api: &api_template
build:
context: ../lando-api/
# Use ./Dockerfile-dev to run using flask's built-in dev server
# Use ./Dockerfile to run using uwsgi, similar to remote environments
dockerfile: ./Dockerfile-dev
image: suite_lando-api
environment:
PORT: 9000
VERSION_PATH: /config/version.json
volumes:
- ../lando-api:/app
- ../lando-api/docker/dev-version.json:/version.json
- ../lando-api/migrations:/migrations
treestatus:
<<: *api_template
environment:
# Define the treestatus module as a clone of `lando-api` except for the
# `TREESTATUS_APP` environment variable, so the Treestatus API endpoints
# are loaded.
TREESTATUS_APP: 1
lando-api.landing-worker:
build:
context: ../lando-api/
# Use ./Dockerfile-dev to run using flask's built-in dev server
# Use ./Dockerfile to run using uwsgi, similar to remote environments
dockerfile: ./Dockerfile-dev
image: suite_lando-api
command: ["landing-worker"]
environment:
ENV: localdev
# TREESTATUS_URL: "http://autoland.treestatus:8000/"
DATABASE_URL: postgresql://postgres:[email protected]/postgres
SENTRY_DSN:
CELERY_BROKER_URL: redis://redis.queue/0
OIDC_IDENTIFIER: https://lando-api.test
LANDO_UI_URL: https://lando.test
REPO_CLONES_PATH: /repos
REPOS_TO_LAND: first-repo,second-repo,third-repo
DEFAULT_GRACE_SECONDS: 10
LANDING_WORKER_USERNAME: app
LANDING_WORKER_TARGET_SSH_PORT: 8022
SSH_PRIVATE_KEY: |
-----BEGIN EC PRIVATE KEY-----
MHcCAQEEIMiMNKEkf0vr4HrhUIrq0e9NjGNPArN7L1uy/HQZ1dA8oAoGCCqGSM49
AwEHoUQDQgAEdakNgjerNLFXy1uMfwLjPd5/pBTbIEoZMdMV/o6s+uoMg776LF+v
gtbfIaZbhDcJElzHwpnqGfHYU+cM4KyurA==
-----END EC PRIVATE KEY-----
user: root
volumes:
- ../lando-api:/app
- ../lando-api/migrations:/migrations
# Prevent writing python cache to the host.
- caches_cache:/app/.cache/
- /repos
depends_on:
- lando-api.db
- redis.queue
redis.queue:
image: redis:3.2-alpine
lando-ui.test:
volumes:
- ../lando-api:/app
- ../lando-api/docker/dev-version.json:/version.json
- ../lando-api/migrations:/migrations
volumes:
caches_cache: