-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
86 lines (81 loc) · 2.41 KB
/
Copy pathdocker-compose.yml
File metadata and controls
86 lines (81 loc) · 2.41 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
services:
launchplane:
image: ${DOCKER_IMAGE_REFERENCE:-launchplane:local}
pull_policy: always
restart: unless-stopped
env_file:
- .env
command:
- /app/scripts/start-launchplane-service.sh
environment:
DOCKER_IMAGE_REFERENCE: ${DOCKER_IMAGE_REFERENCE:-launchplane:local}
LAUNCHPLANE_SERVICE_AUDIENCE: ${LAUNCHPLANE_SERVICE_AUDIENCE:-localhost}
LAUNCHPLANE_SERVICE_HOST: 0.0.0.0
LAUNCHPLANE_SERVICE_PORT: 8080
LAUNCHPLANE_STATE_DIR: /app/runtime
healthcheck:
test:
- CMD
- python
- -c
- |
import json
import os
import urllib.request
port = os.environ.get("LAUNCHPLANE_SERVICE_PORT", "8080")
with urllib.request.urlopen(f"http://127.0.0.1:{port}/v1/health", timeout=5) as response:
payload = json.load(response)
raise SystemExit(0 if payload.get("status") == "ok" else 1)
interval: 10s
timeout: 5s
retries: 12
start_period: 20s
volumes:
- launchplane-runtime:/app/runtime
networks:
- default
- launchplane-external-network
launchplane-odoo-workers:
image: ${DOCKER_IMAGE_REFERENCE:-launchplane:local}
pull_policy: always
restart: unless-stopped
depends_on:
launchplane:
condition: service_healthy
env_file:
- .env
command:
- /app/scripts/start-launchplane-odoo-workers.sh
environment:
DOCKER_IMAGE_REFERENCE: ${DOCKER_IMAGE_REFERENCE:-launchplane:local}
LAUNCHPLANE_STATE_DIR: /app/runtime
volumes:
- launchplane-runtime:/app/runtime
networks:
- default
- launchplane-external-network
launchplane-verireel-workers:
image: ${DOCKER_IMAGE_REFERENCE:-launchplane:local}
pull_policy: always
restart: unless-stopped
depends_on:
launchplane:
condition: service_healthy
env_file:
- .env
command:
- /app/scripts/start-launchplane-verireel-workers.sh
environment:
DOCKER_IMAGE_REFERENCE: ${DOCKER_IMAGE_REFERENCE:-launchplane:local}
LAUNCHPLANE_STATE_DIR: /app/runtime
volumes:
- launchplane-runtime:/app/runtime
networks:
- default
- launchplane-external-network
networks:
launchplane-external-network:
name: ${LAUNCHPLANE_COMPOSE_EXTERNAL_NETWORK:?Missing LAUNCHPLANE_COMPOSE_EXTERNAL_NETWORK}
external: true
volumes:
launchplane-runtime: {}