How i use docker-composer file in podman?
This examples:
version: '3.7'
services:
gitea:
image: gitea/gitea:latest
environment:
- DB_TYPE=postgres
- DB_HOST=db:5432
- DB_NAME=
- DB_USER=
- DB_PASSWD=
restart: always
volumes:
- git_data:/data
ports:
- 3000:3000
Generate image using dockerfile normal?
The upcoming Podman 3.0 supports the Docker REST API well enough to be used as back-end for docker-compose. It is planned to be released in a few weeks (see Podman releases).
Caveats:
Running Podman as root is supported, but not yet running as a normal user, i.e. running "rootless". (See feature request)
Functionality relating to Swarm is not supported
To enable Podman as the back-end for docker-compose, run
sudo systemctl enable --now podman.socket
Podman will then listen on the UNIX domain socket /var/run/docker.sock
See also: https://www.redhat.com/sysadmin/podman-docker-compose