Skip to content

Commit

Permalink
add docker
Browse files Browse the repository at this point in the history
  • Loading branch information
chendelin1982 authored Apr 17, 2024
1 parent 98d1c2c commit 131ef1c
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 0 deletions.
19 changes: 19 additions & 0 deletions apps/docker/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
W9_DIST=community
W9_VERSION=latest

W9_HTTP_PORT_SET=9001
W9_REPOandTAG_SET=busybox:latest
W9_Container_HTTP_PORT_SET=8080
W9_HTTP_PORT=$W9_Container_HTTP_PORT_SET

#### -- Not allowed to edit below environments when recreate app based on existing data -- ####

W9_ID=docker
W9_URL=example.domain.com
W9_URL_REPLACE=true
W9_NETWORK=websoft9

#### ----------------------------------------------------------------------------------------- ####


# Below environment is created by user
5 changes: 5 additions & 0 deletions apps/docker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# CHANGELOG

## Release
### Fixes and Enhancements

3 changes: 3 additions & 0 deletions apps/docker/Notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Docker

This app is only for user to create a Websoft9 application framework
20 changes: 20 additions & 0 deletions apps/docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

version: '3.8'
services:

webapp:
image: $W9_REPOandTAG_SET
container_name: $W9_ID
restart: unless-stopped
tty: true
ports:
- $W9_HTTP_PORT_SET:$W9_Container_HTTP_PORT_SET
env_file: .env

volumes:
data:

networks:
default:
name: $W9_NETWORK
external: true
3 changes: 3 additions & 0 deletions apps/docker/src/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# About

This folder includes files mount to container and used by Websoft9
Empty file.
18 changes: 18 additions & 0 deletions apps/docker/variables.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "docker",
"trademark": "Docker",
"release": false,
"fork_url": "https://docker.com",
"edition": [
{
"dist": "community",
"version": ["latest"]
}
],
"requirements": {
"cpu": "1",
"memory": "1",
"disk": "1",
"url": "https://docker.com"
}
}

0 comments on commit 131ef1c

Please sign in to comment.