-
-
Notifications
You must be signed in to change notification settings - Fork 570
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
638fbe1
commit 931f3fc
Showing
4 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
services: | ||
client: | ||
image: bluewaveuptime/uptime_client:latest | ||
restart: always | ||
environment: | ||
UPTIME_APP_API_BASE_URL: "http://${DOMAIN}/api/v1" | ||
ports: | ||
- 80 | ||
- 443 | ||
depends_on: | ||
- server | ||
networks: | ||
- dokploy-network | ||
server: | ||
image: bluewaveuptime/uptime_server:latest | ||
restart: always | ||
ports: | ||
- 5000 | ||
depends_on: | ||
- redis | ||
- mongodb | ||
environment: | ||
- DB_CONNECTION_STRING=mongodb://mongodb:27017/uptime_db | ||
- REDIS_HOST=redis | ||
networks: | ||
- dokploy-network | ||
# volumes: | ||
# - /var/run/docker.sock:/var/run/docker.sock:ro | ||
redis: | ||
image: bluewaveuptime/uptime_redis:latest | ||
restart: always | ||
ports: | ||
- 6379 | ||
volumes: | ||
- ./redis/data:/data | ||
networks: | ||
- dokploy-network | ||
mongodb: | ||
image: bluewaveuptime/uptime_database_mongo:latest | ||
restart: always | ||
volumes: | ||
- ./mongo/data:/data/db | ||
command: ["mongod", "--quiet"] | ||
ports: | ||
- 27017 | ||
networks: | ||
- dokploy-network |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { | ||
type DomainSchema, | ||
type Schema, | ||
type Template, | ||
generateRandomDomain, | ||
} from "../utils"; | ||
|
||
export function generate(schema: Schema): Template { | ||
const mainDomain = generateRandomDomain(schema); | ||
|
||
const envs = [`DOMAIN=${mainDomain}`]; | ||
|
||
const domains: DomainSchema[] = [ | ||
{ | ||
host: mainDomain, | ||
port: 80, | ||
serviceName: "client", | ||
}, | ||
]; | ||
|
||
return { | ||
domains, | ||
envs, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters