1 Use following command to serve client's html and assets with PHP.
4 RESTAPI_HOST="rest.api.host.or.ip" \
5 RESTAPI_PORT="rest.api.port" \
9 --------------------------------------------------------------------------------
14 Build (docker/container) image
25 docker run --tty --interactive --rm \
28 --env RESTAPI_HOST='rest.api.host.or.ip' \
29 --env RESTAPI_PORT='rest.api.port' \
33 --------------------------------------------------------------------------------
35 Access containers using domain names
36 ------------------------------------
38 Update **hosts** (`/etc/hosts`) file with [hostctl](https://github.com/guumaster/hostctl)
41 sudo hostctl add domains edi2 api.vot.ar --ip "127.0.0.1"
42 sudo hostctl add domains edi2 www.vot.ar --ip "127.0.0.1"
45 Manually run containers
48 docker run --tty --interactive --rm \
51 --volume /var/run/docker.sock:/tmp/docker.sock:ro \
52 nginxproxy/nginx-proxy:alpine
54 docker run --tty --interactive --rm \
56 --env VIRTUAL_HOST='api.vot.ar' \
59 docker run --tty --interactive --rm \
61 --env RESTAPI_HOST='api.vot.ar' \
62 --env RESTAPI_PORT='80' \
63 --env VIRTUAL_HOST='www.vot.ar' \
67 --------------------------------------------------------------------------------
72 Run the project using [docker compose](https://docs.docker.com/compose/)
78 [Run at system startup](https://stackoverflow.com/a/53569049)
81 sudo systemctl enable docker
82 docker-compose up --detach