-
Notifications
You must be signed in to change notification settings - Fork 3
/
compose.yaml
99 lines (98 loc) · 2.41 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
91
92
93
94
95
96
97
98
99
name: helioviewer
services:
database:
image: dgarciabriseno/helioviewer-db-dev
platform: linux/amd64
build:
dockerfile: ./compose/dockerfiles/db.Dockerfile
environment:
MARIADB_ROOT_PASSWORD: helioviewer
ports:
- 3306:3306
restart: on-failure
healthcheck:
test: ["CMD", "bash", "/usr/local/bin/healthcheck.sh", "--connect"]
interval: 5s
timeout: 5s
retries: 3
volumes:
- jp2_volume:/tmp/jp2
redis:
image: redis
ports:
- 6379:6379
restart: on-failure
# Supporting python api for the helioviewer api
coordinator:
image: dgarciabriseno/hv-coordinator:0.1.0
api:
env_file:
- .env
image: dgarciabriseno/helioviewer-api-dev
build:
dockerfile: ./compose/dockerfiles/api_server.Dockerfile
ports:
- ${API_PORT}:80
depends_on:
- database
- redis
- coordinator
restart: on-failure
platform: linux/amd64
healthcheck:
# Check every 10 seconds, wait up to 2 minutes
test: ["CMD", "ls", "/tmp/container_ready"]
interval: 10s
timeout: 1s
retries: 12
volumes:
- type: volume
source: jp2_volume
target: /tmp/jp2
- cache:/var/www/helioviewer.org/cache
- cache:/var/www/api.helioviewer.org/docroot/cache
- type: bind
source: ./api
target: /var/www/api.helioviewer.org
- api_logs:/var/www/api.helioviewer.org/log
web:
env_file:
- .env
image: dgarciabriseno/helioviewer-web-dev
build:
dockerfile: ./compose/dockerfiles/webserver.Dockerfile
ports:
- ${CLIENT_PORT}:80
depends_on:
- api
restart: on-failure
healthcheck:
# Check every 10 seconds, wait up to 2 minutes
test: ["CMD", "curl", "-s", "-X", "GET", "http://localhost"]
interval: 10s
timeout: 1s
retries: 12
volumes:
- type: bind
source: ./helioviewer.org
target: /var/www/html
- type: bind
source: ./api
target: /var/www/api.helioviewer.org
- cache:/var/www/html/cache
movies:
image: dgarciabriseno/helioviewer-movies-dev
depends_on:
redis:
condition: service_started
api:
condition: service_healthy
build:
dockerfile: ./compose/dockerfiles/movie_builder.Dockerfile
platform: linux/amd64
volumes_from:
- api
volumes:
jp2_volume:
cache:
api_logs: