Skip to content

Commit

Permalink
chore: make docker-compose docker rootful compat (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Izquierdo authored Oct 11, 2023
1 parent e0d1635 commit c790779
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
17 changes: 16 additions & 1 deletion tools/docker/docker-compose-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,30 @@ x-environment:
- EDA_SERVER=http://${EDA_HOST:-eda-api:8000}

services:
podman-pre-setup:
user: "0"
image: quay.io/containers/podman:${EDA_PODMAN_VERSION:-v4}
privileged: true
command: >-
chown -R podman /home/podman/.local/share/containers/storage
ports:
- 8888:8888
volumes:
- 'podman_data:/home/podman/.local/share/containers/storage'

podman:
user: "1000"
image: quay.io/containers/podman:${EDA_PODMAN_VERSION:-v4}
privileged: true
command: podman system service --time=0 tcp://0.0.0.0:8888
command: >-
podman system service --time=0 tcp://0.0.0.0:8888
ports:
- 8888:8888
volumes:
- 'podman_data:/home/podman/.local/share/containers/storage'
depends_on:
- podman-pre-setup


eda-ui:
image: "${EDA_UI_IMAGE:-quay.io/ansible/eda-ui:main}"
Expand Down
16 changes: 15 additions & 1 deletion tools/docker/docker-compose-stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,29 @@ x-environment:
- EDA_SERVER=http://eda-api:8000

services:
podman-pre-setup:
user: "0"
image: quay.io/containers/podman:${EDA_PODMAN_VERSION:-v4}
privileged: true
command: >-
chown -R podman /home/podman/.local/share/containers/storage
ports:
- 8888:8888
volumes:
- 'podman_data:/home/podman/.local/share/containers/storage'

podman:
user: "1000"
image: quay.io/containers/podman:${EDA_PODMAN_VERSION:-v4}
privileged: true
command: podman system service --time=0 tcp://0.0.0.0:8888
command: >-
podman system service --time=0 tcp://0.0.0.0:8888
ports:
- 8888:8888
volumes:
- 'podman_data:/home/podman/.local/share/containers/storage'
depends_on:
- podman-pre-setup

eda-ui:
image: "${EDA_UI_IMAGE:-quay.io/ansible/eda-ui:main}"
Expand Down

0 comments on commit c790779

Please sign in to comment.