Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
fix docker-compose.sls
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannis Warnat committed Sep 11, 2023
1 parent a7cd25b commit c8f5914
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions srv/salt/docker-compose.sls
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
docker-compose:
pip:
- installed
- extra_args:
- --no-build-isolation

dockercompose.create:
module.run:
- path: /tmp/docker-compose-created.yml
Expand All @@ -7,7 +13,7 @@ dockercompose.create:
image: nginxdemos/hello:latest
container_name: nginx-hello-world
ports:
- 8081:8080
- 8082:8080
dockercompose.up:
module.run:
Expand All @@ -17,10 +23,10 @@ nginxdemos/hello:
docker_image.present:
- tag: latest
docker_container.running:
- name: nginx-hello-world
- name: nginx-hello-world-original
- image: nginxdemos/hello:latest
- port_bindings:
- 8081:80
- 8082:80
- require:
- docker_image: nginxdemos/hello
http.wait_for_successful_query:
Expand Down

0 comments on commit c8f5914

Please sign in to comment.