version: '3.1'
services:
app:
image: test/app
build:
context: ./
dockerfile: Dockerfile
container_name: app
restart: always
ports:
- '8080:8080'
- name: change internal port
lineinfile:
dest: "{{ project_path }}/docker-compose.yaml"
regexp: '8080:8080'
insertafter: '8080:8080'
line: ' - 80:8080'