2021-01-04 21:28:13 +01:00
|
|
|
version: '3.3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
app:
|
2021-01-11 09:48:47 +01:00
|
|
|
build:
|
|
|
|
context: '.'
|
|
|
|
dockerfile: './Dockerfile'
|
|
|
|
image: 'firefly-iii-cron:latest'
|
|
|
|
restart: 'always'
|
2021-01-04 21:28:13 +01:00
|
|
|
|
|
|
|
depends_on:
|
2021-01-11 09:48:47 +01:00
|
|
|
- 'db'
|
|
|
|
- 'redis'
|
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-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-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:
|