bewcloud/docker-compose.yml

63 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2024-03-16 08:40:24 +00:00
services:
website:
image: ghcr.io/bewcloud/bewcloud:v4.1.2
# NOTE: uncomment below (and comment above) only if you pulled the repo and want to build the image locally
# build:
# context: .
# dockerfile: Dockerfile
restart: always
ports:
- 127.0.0.1:8000:8000
mem_limit: '256m'
env_file:
- path: .env
required: true
volumes:
- ./data-files:/app/data-files
- ./bewcloud.config.ts:/app/bewcloud.config.ts
2024-03-16 08:40:24 +00:00
postgresql:
image: postgres:18.1
2024-03-16 08:40:24 +00:00
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=fake
- POSTGRES_DB=bewcloud
restart: always
2024-03-16 08:40:24 +00:00
volumes:
- bewcloud-db:/var/lib/postgresql/18/docker
# NOTE: uncomment below only if you need to connect to the database from outside the container
# ports:
# - 127.0.0.1:5432:5432
2024-03-16 08:40:24 +00:00
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: '256m'
2024-03-16 08:40:24 +00:00
# NOTE: If you don't want to use the CardDav/CalDav servers, you can comment/remove this service.
radicale:
image: tomsquest/docker-radicale:3.6.0.0
# NOTE: uncomment below only if you need to connect to the CardDav/CalDav servers from outside the container
# ports:
# - 127.0.0.1:5232:5232
init: true
read_only: true
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
cap_add:
- SETUID
- SETGID
- CHOWN
- KILL
restart: always
volumes:
- ./data-radicale:/data
- ./radicale-config:/config:ro
mem_limit: '256m'
2024-03-16 08:40:24 +00:00
volumes:
bewcloud-db:
2024-03-16 08:40:24 +00:00
driver: local