browsertrix/configs/docker-compose.podman.yml
Ilya Kreymer 418c07bf0d
Local swarm + podman support (#261)
* backend: refactor swarm support to also support podman (#260)
- implement podman support as subclass of swarm deployment
- podman is used when 'RUNTIME=podman' env var is set
- podman socket is mapped instead of docker socket
- podman-compose is used instead of docker-compose (though docker-compose works with podman, it does not support secrets, but podman-compose does)
- separate cli utils into SwarmRunner and PodmanRunner which extends it
- using config.yaml and config.env, both copied from sample versions
- work on simplifying config: add docker-compose.podman.yml and docker-compose.swarm.yml and signing and debug configs in ./configs
- add {build,run,stop}-{swarm,podman}.sh in scripts dir
- add init-configs, only copy if configs don't exist
- build local image use current version of podman, to support both podman 3.x and 4.x
- additional fixes for after testing podman on centos
- docs: update Deployment.md to cover swarm, podman, k8s deployment
2022-06-14 00:13:49 -07:00

39 lines
759 B
YAML

# config for running with podman as the container engine
version: '3.8'
services:
backend:
#hostname: backend
restart: always
volumes:
- ${XDG_RUNTIME_DIR-/run}/podman/podman.sock:/run/user/0/podman/podman.sock:z
security_opt:
- "label=disable"
environment:
- RUNTIME=podman
- SOCKET_SRC=${XDG_RUNTIME_DIR-/run}/podman/podman.sock
- SOCKET_DEST=/run/user/0/podman/podman.sock
- CRAWLER_FQDN_SUFFIX=.dns.podman
frontend:
#hostname: frontend
restart: always
environment:
- CRAWLER_FQDN_SUFFIX=.dns.podman
mongo:
image: docker.io/library/mongo
#hostname: mongo
restart: always
minio:
image: docker.io/minio/minio
#hostname: minio
restart: always