50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
version: "3.8"
|
|
services:
|
|
db:
|
|
container_name: wger-db
|
|
image: postgres:13-alpine
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
networks:
|
|
- custom-bridge
|
|
restart: always
|
|
env_file: .env
|
|
volumes:
|
|
- ${POSTGRES_DATA:-/home/docker/wger/db}:/var/lib/postgresql/data
|
|
- /etc/localtime:/etc/localtime:ro
|
|
healthcheck:
|
|
test: ["CMD", "pg_isready", "-U", "wger"]
|
|
interval: 1m30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
cache:
|
|
container_name: wger-cache
|
|
image: redis:alpine
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
networks:
|
|
- custom-bridge
|
|
restart: always
|
|
|
|
wger:
|
|
container_name: wger
|
|
image: wger/devel
|
|
networks:
|
|
- custom-bridge
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- db
|
|
- cache
|
|
ports:
|
|
- ${WGER_WEBUI_PORT:-8000}:8000
|
|
env_file: .env
|
|
volumes:
|
|
- ${WGER_STATIC:-/home/docker/wger/static}:/wger/static
|
|
- ${WGER_MEDIA:-/home/docker/wger/media}/wger/media
|
|
|
|
networks:
|
|
custom-bridge:
|
|
name: custom-bridge
|
|
driver: bridge |