2021-01-14 17:20:38 +01:00
|
|
|
version: '2.8'
|
2021-01-04 21:28:13 +01:00
|
|
|
|
|
|
|
services:
|
|
|
|
app:
|
2021-01-11 09:48:47 +01:00
|
|
|
build:
|
|
|
|
context: '.'
|
2021-01-11 10:01:03 +01:00
|
|
|
args:
|
|
|
|
- 'LOCALE=$DEFAULT_LOCALE'
|
2021-01-11 09:48:47 +01:00
|
|
|
image: 'firefly-iii-cron:latest'
|
|
|
|
restart: 'always'
|
2021-01-14 17:20:38 +01:00
|
|
|
healthcheck:
|
|
|
|
test: 'curl -f localhost:8080 || exit 1'
|
|
|
|
interval: '1m'
|
|
|
|
timeout: '10s'
|
|
|
|
retries: 3
|
|
|
|
start_period: '10s'
|
2021-01-04 21:28:13 +01:00
|
|
|
|
|
|
|
depends_on:
|
2021-01-14 17:20:38 +01:00
|
|
|
db:
|
|
|
|
condition: 'service_healthy'
|
|
|
|
redis:
|
|
|
|
condition: 'service_healthy'
|
2021-01-04 21:28:13 +01:00
|
|
|
env_file:
|
2021-01-11 09:48:47 +01:00
|
|
|
- '.env'
|
2021-01-05 12:00:43 +01:00
|
|
|
labels:
|
|
|
|
- 'com.centurylinklabs.watchtower.enable=true'
|
2021-01-04 21:35:01 +01:00
|
|
|
networks:
|
2021-01-11 09:48:47 +01:00
|
|
|
- 'nginx'
|
|
|
|
- 'default'
|
2021-01-04 21:28:13 +01:00
|
|
|
volumes:
|
2021-01-11 09:48:47 +01:00
|
|
|
- 'upload:/var/www/html/storage/upload'
|
2021-01-04 21:28:13 +01:00
|
|
|
|
|
|
|
db:
|
2021-01-11 09:48:47 +01:00
|
|
|
image: 'postgres:13-alpine'
|
|
|
|
restart: 'always'
|
2021-01-14 17:20:38 +01:00
|
|
|
healthcheck:
|
|
|
|
test: 'pg_isready -U $DB_USERNAME'
|
|
|
|
interval: '10s'
|
|
|
|
timeout: '5s'
|
|
|
|
retries: 5
|
2021-01-04 21:28:13 +01:00
|
|
|
|
2021-01-11 09:48:47 +01:00
|
|
|
environment:
|
|
|
|
- 'POSTGRES_DB=$DB_DATABASE'
|
|
|
|
- 'POSTGRES_PASSWORD=$DB_PASSWORD'
|
|
|
|
- 'POSTGRES_USER=$DB_USERNAME'
|
2021-01-05 12:00:43 +01:00
|
|
|
labels:
|
|
|
|
- 'com.centurylinklabs.watchtower.enable=true'
|
2021-01-04 21:28:13 +01:00
|
|
|
volumes:
|
2021-01-11 09:48:47 +01:00
|
|
|
- 'db-data:/var/lib/postgresql/data'
|
2021-01-04 21:28:13 +01:00
|
|
|
|
|
|
|
redis:
|
2021-01-11 09:48:47 +01:00
|
|
|
image: 'redis:6-alpine'
|
|
|
|
restart: 'always'
|
2021-01-14 17:20:38 +01:00
|
|
|
healthcheck:
|
|
|
|
test: 'redis-cli -h localhost ping'
|
|
|
|
interval: '10s'
|
|
|
|
timeout: '5s'
|
|
|
|
retries: 3
|
2021-01-04 21:28:13 +01:00
|
|
|
|
2021-01-05 12:00:43 +01:00
|
|
|
labels:
|
|
|
|
- 'com.centurylinklabs.watchtower.enable=true'
|
|
|
|
|
2021-01-04 21:35:01 +01:00
|
|
|
networks:
|
|
|
|
nginx:
|
2021-01-11 09:48:47 +01:00
|
|
|
external: true
|
2021-01-04 21:35:01 +01:00
|
|
|
|
2021-01-04 21:28:13 +01:00
|
|
|
volumes:
|
|
|
|
upload:
|
|
|
|
db-data:
|