-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcompose.yaml
90 lines (83 loc) · 1.94 KB
/
compose.yaml
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
services:
db:
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres", "-d", "postgres"]
interval: 1s
timeout: 10s
retries: 10
lando:
user: ${UID}:${GID}
build:
context: .
stdin_open: true
tty: true
image: lando
command: bash -c "
lando generate_version_file &&
lando migrate &&
lando collectstatic --clear --no-input &&
uwsgi --ini /code/uwsgi.ini:local"
volumes:
- ./:/code
- ./staticfiles:/staticfiles
- media:/files/
env_file:
- .env
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:
- .env
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:
- .env
depends_on:
db:
condition: service_healthy
proxy:
build: ./nginx
ports:
- 443:443
depends_on:
- lando
volumes:
- ./staticfiles:/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: