Fix mapped ports in deployment for containers
This commit is contained in:
parent
1d754a7c9b
commit
5ee0bdf00e
@ -18,7 +18,7 @@ services:
|
||||
osmosis-front-end:
|
||||
condition: service_completed_successfully
|
||||
restart: on-failure
|
||||
command: ["python3", "-m", "http.server", "-d" ,"/app-builds/osmosis/build", "4000"]
|
||||
command: ["python3", "-m", "http.server", "-d" ,"/app-builds/osmosis/build", "3000"]
|
||||
volumes:
|
||||
- app_builds:/app-builds
|
||||
ports:
|
||||
|
||||
@ -22,7 +22,7 @@ Build the container images:
|
||||
# support image for the gitea package registry
|
||||
laconic-so --stack build-support build-containers
|
||||
|
||||
laconic-so --stack osmosis build-containers
|
||||
laconic-so --stack osmosis build-containers
|
||||
```
|
||||
|
||||
## Create a deployment
|
||||
@ -38,11 +38,12 @@ Edit `network` in spec file to map container ports to same ports in host
|
||||
|
||||
```
|
||||
...
|
||||
ports:
|
||||
proxy-server:
|
||||
- '4000:4000'
|
||||
python-server:
|
||||
- '3000:3000'
|
||||
network:
|
||||
ports:
|
||||
proxy-server:
|
||||
- '4000:4000'
|
||||
python-server:
|
||||
- '3000:3000'
|
||||
```
|
||||
|
||||
### Data volumes
|
||||
@ -91,6 +92,8 @@ laconic-so deployment --dir osmosis-deployment start
|
||||
|
||||
* List and check the health status of all the containers using `docker ps` and wait for them to be `healthy`
|
||||
|
||||
* The web app can be accessed at http://localhost:3000
|
||||
|
||||
## Laconic registry
|
||||
|
||||
Setup a test chain:
|
||||
|
||||
@ -5,6 +5,7 @@ repos:
|
||||
- git.vdb.to/cerc-io/hosting@names-for-so
|
||||
- gitea.com/gitea/act_runner
|
||||
# For osmosis frontend
|
||||
- github.com/cerc-io/watcher-ts@v0.2.78
|
||||
- github.com/cerc-io/osmosis-frontend@ng-export-static # TODO: Update branch after merge
|
||||
containers:
|
||||
- cerc/act-runner
|
||||
|
||||
Loading…
Reference in New Issue
Block a user