mirror of
https://github.com/rekryt/iplist.git
synced 2026-06-27 20:11:47 +00:00
62 lines
1.6 KiB
YAML
62 lines
1.6 KiB
YAML
services:
|
|
app:
|
|
restart: unless-stopped
|
|
build:
|
|
context: .
|
|
env_file:
|
|
- ./.env
|
|
volumes:
|
|
- ./src/:/app/src/
|
|
- ./config/:/app/config/
|
|
- ./storage/:/app/storage/
|
|
- ./public/:/app/public/
|
|
healthcheck:
|
|
test: ['CMD', 'curl', '-fsS', 'http://127.0.0.1:8080/health']
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 2
|
|
start_period: 30s
|
|
labels:
|
|
- 'autoheal=true'
|
|
logging:
|
|
driver: 'json-file'
|
|
options:
|
|
max-size: '50m'
|
|
# networks:
|
|
# - default
|
|
autoheal:
|
|
image: 'willfarrell/autoheal:latest'
|
|
restart: unless-stopped
|
|
environment:
|
|
- AUTOHEAL_CONTAINER_LABEL=autoheal
|
|
- AUTOHEAL_INTERVAL=10
|
|
- AUTOHEAL_START_PERIOD=30
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
logging:
|
|
driver: 'json-file'
|
|
options:
|
|
max-size: '50m'
|
|
nginx:
|
|
image: 'nginx:latest'
|
|
restart: unless-stopped
|
|
ports:
|
|
- '8080:80'
|
|
volumes:
|
|
- ./public:/var/www/public/
|
|
- ./nginx/conf.d/:/etc/nginx/conf.d/
|
|
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
|
|
- ./cache/:/var/cache/
|
|
depends_on:
|
|
- app
|
|
logging:
|
|
driver: 'json-file'
|
|
options:
|
|
max-size: '50m'
|
|
# networks:
|
|
# - default
|
|
# - web
|
|
#networks:
|
|
# web:
|
|
# external: true
|
|
# name: web
|