-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.release.yml
More file actions
76 lines (72 loc) · 2.54 KB
/
docker-compose.release.yml
File metadata and controls
76 lines (72 loc) · 2.54 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
# This docker-compose file is intended for end-users.
# It uses pre-built images from the GitHub Container Registry.
# For development and building from source, please use the main docker-compose.yml file.
services:
nginx:
image: ghcr.io/michelegz/astro-web-indexer-nginx:v1.2.1
container_name: awi-nginx
ports:
- "${NGINX_PORT:-2080}:80"
volumes:
- ${FITS_DATA_PATH:-./data/fits}:/var/fits:ro
restart: unless-stopped
depends_on:
- php
php:
image: ghcr.io/michelegz/astro-web-indexer-php:v1.2.1
container_name: awi-php
volumes:
- ${FITS_DATA_PATH:-./data/fits}:/var/fits:ro
# To use a custom logo, uncomment the following line and
# replace ./path/to/your/logo.svg with the actual path to your logo file.
# - ./path/to/your/logo.svg:/var/www/html/assets/logo/custom_logo.svg:ro
working_dir: /var/www/html
environment:
- HEADER_TITLE=${HEADER_TITLE:-Astro Web Indexer}
- DB_HOST=${DB_HOST:-mariadb}
- DB_NAME=${DB_NAME:-awi_db}
- DB_USER=${DB_USER:-awi_user}
- DB_PASSWORD=${DB_PASSWORD:-awi_password}
- AUTH_MODE=${AUTH_MODE:-none}
- ADMIN_USER=${ADMIN_USER:-admin}
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-changeme}
restart: unless-stopped
depends_on:
mariadb:
condition: service_healthy
python:
image: ghcr.io/michelegz/astro-web-indexer-python:v1.2.1
container_name: awi-python
volumes:
- ${FITS_DATA_PATH:-./data/fits}:/var/fits:ro
environment:
- DB_HOST=${DB_HOST:-mariadb}
- DB_NAME=${DB_NAME:-awi_db}
- DB_USER=${DB_USER:-awi_user}
- DB_PASSWORD=${DB_PASSWORD:-awi_password}
- THUMB_SIZE=${THUMB_SIZE:-300}
- INDEXER_WORKERS=${INDEXER_WORKERS:-4}
- RETENTION_DAYS=${RETENTION_DAYS:-30}
- DEBUG=${DEBUG:-false}
- POLL_INTERVAL=${POLL_INTERVAL:-30}
- FORCE_POLLING=${FORCE_POLLING:-false}
restart: unless-stopped
depends_on:
mariadb:
condition: service_healthy
mariadb:
image: ghcr.io/michelegz/astro-web-indexer-mariadb:v1.2.1
container_name: awi-mariadb
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-rootpassword}
MYSQL_DATABASE: ${DB_NAME:-awi_db}
MYSQL_USER: ${DB_USER:-awi_user}
MYSQL_PASSWORD: ${DB_PASSWORD:-awi_password}
volumes:
- ./data/db:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-uroot", "-p${MYSQL_ROOT_PASSWORD:-rootpassword}"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped