54 lines
1.1 KiB
YAML
54 lines
1.1 KiB
YAML
version: '3.3'
|
|
|
|
services:
|
|
app:
|
|
build:
|
|
context: '.'
|
|
dockerfile: './Dockerfile'
|
|
args:
|
|
- 'LOCALE=$DEFAULT_LOCALE'
|
|
image: 'firefly-iii-cron:latest'
|
|
restart: 'always'
|
|
|
|
depends_on:
|
|
- 'db'
|
|
- 'redis'
|
|
env_file:
|
|
- '.env'
|
|
labels:
|
|
- 'com.centurylinklabs.watchtower.enable=true'
|
|
networks:
|
|
- 'nginx'
|
|
- 'default'
|
|
volumes:
|
|
- 'upload:/var/www/html/storage/upload'
|
|
|
|
db:
|
|
image: 'postgres:13-alpine'
|
|
restart: 'always'
|
|
|
|
environment:
|
|
- 'POSTGRES_DB=$DB_DATABASE'
|
|
- 'POSTGRES_PASSWORD=$DB_PASSWORD'
|
|
- 'POSTGRES_USER=$DB_USERNAME'
|
|
labels:
|
|
- 'com.centurylinklabs.watchtower.enable=true'
|
|
volumes:
|
|
- 'db-data:/var/lib/postgresql/data'
|
|
|
|
redis:
|
|
image: 'redis:6-alpine'
|
|
restart: 'always'
|
|
|
|
labels:
|
|
- 'com.centurylinklabs.watchtower.enable=true'
|
|
|
|
|
|
networks:
|
|
nginx:
|
|
external: true
|
|
|
|
volumes:
|
|
upload:
|
|
db-data:
|