-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathcompose.yaml
More file actions
97 lines (90 loc) · 2.11 KB
/
compose.yaml
File metadata and controls
97 lines (90 loc) · 2.11 KB
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
services:
db:
image: postgres:17
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres", "-d", "postgres"]
interval: 1s
timeout: 10s
retries: 10
volumes:
- postgres_db:/var/lib/postgresql/data
lando:
user: ${UID}:${GID}
build:
context: .
stdin_open: true
tty: true
image: lando
command: bash -c "
lando migrate &&
lando collectstatic --clear --no-input &&
uwsgi --ini /code/uwsgi.ini:local"
volumes:
- ./:/code
- media:/files/
- /code/src/lando/version
env_file:
- path: .env
required: false
environment:
DEFAULT_DB_HOST: db
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
hg-landing-worker:
image: lando
command: lando start_landing_worker hg
environment:
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-----
env_file:
- path: .env
required: false
depends_on:
db:
condition: service_healthy
git-landing-worker:
image: lando
command: lando start_landing_worker git
environment:
DEFAULT_GRACE_SECONDS: 10
LANDING_WORKER_USERNAME: app
env_file:
- path: .env
required: false
depends_on:
db:
condition: service_healthy
proxy:
build: ./nginx
ports:
- 443:443
depends_on:
- lando
volumes:
- ./staticfiles:/code/staticfiles
redis:
image: redis:7.2
healthcheck:
test: ["CMD", "redis-cli", "ping"]
celery:
image: lando
command: lando start_celery_worker
depends_on:
redis:
condition: service_healthy
volumes:
media:
postgres_db: