Updated docker deployment
This commit is contained in:
parent
f482e4dc58
commit
4f14264d23
11 changed files with 50 additions and 51 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -73,6 +73,5 @@ fabric.properties
|
||||||
logs/
|
logs/
|
||||||
.DS_Store
|
.DS_Store
|
||||||
server_log.txt
|
server_log.txt
|
||||||
ormapp/
|
|
||||||
backup/
|
backup/
|
||||||
|
|
||||||
|
|
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
||||||
BSD 3-Clause License
|
BSD 3-Clause License
|
||||||
|
|
||||||
Copyright (c) 2021, dukefirehawk.com
|
Copyright (c) 2024, dukefirehawk.com
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
|
22
README.md
22
README.md
|
@ -60,7 +60,7 @@ For more details, checkout [Project Status](https://github.com/dart-backend/ange
|
||||||
### Release 9.0.0 (Future)
|
### Release 9.0.0 (Future)
|
||||||
|
|
||||||
* Performance optimsation
|
* Performance optimsation
|
||||||
* Update and enhance ORM to support macro
|
* Update ORM to support macro
|
||||||
|
|
||||||
### Release 8.0.0 (Current)
|
### Release 8.0.0 (Current)
|
||||||
|
|
||||||
|
@ -164,24 +164,20 @@ Check out [Migrating to Angel3](https://angel3-docs.dukefirehawk.com/migration/a
|
||||||
|
|
||||||
The performance benchmark can be found at
|
The performance benchmark can be found at
|
||||||
|
|
||||||
[TechEmpower Framework Benchmarks Round 21](https://www.techempower.com/benchmarks/#section=data-r21&test=composite)
|
[TechEmpower Framework Benchmarks Round 22](https://www.techempower.com/benchmarks/#section=data-r22&test=composite)
|
||||||
|
|
||||||
The test cases are build using standard `Angel3 ORM` template. The result are used for fine-tuning Angel3 framework. The following test cases will be added in the upcoming update to the benchmark.
|
The test cases are build using standard `Angel3 ORM` template for PostgreSQL and MySQL database. The result are used for fine-tuning Angel3 framework with respect to other frameworks. The following test cases will be added in the upcoming update to the benchmark.
|
||||||
|
|
||||||
1. Cache
|
1. Cache with Redis
|
||||||
2. Angel3 with MongoDB
|
2. Angel3 with MongoDB
|
||||||
|
|
||||||
## Examples and Documentation
|
## Examples and Documentation
|
||||||
|
|
||||||
Visit the [User Guide](https://angel3-docs.dukefirehawk.com/) for dozens of guides and resources, including video tutorials, to get up and running as quickly as possible with Angel3 framework.
|
Please visit our [User Guide](https://angel3-docs.dukefirehawk.com/) and [Examples](https://github.com/dart-backend/angel3-examples) for more detailed information on the available features of Angel3 framework.
|
||||||
|
|
||||||
Examples and complete projects can be found [here](https://github.com/dart-backend/angel3-examples).
|
|
||||||
|
|
||||||
You can also view the [Angel3 API](http://www.dartdocs.org/documentation/angel_framework/latest).
|
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
Interested in contributing to Angel3? See the contribution guide [here](CONTRIBUTING.md).
|
If you are interested in contributing to Angel3 framework please check out the [Contribution Guide](CONTRIBUTING.md).
|
||||||
|
|
||||||
### Development Setup
|
### Development Setup
|
||||||
|
|
||||||
|
@ -208,7 +204,7 @@ Interested in contributing to Angel3? See the contribution guide [here](CONTRIBU
|
||||||
|
|
||||||
## Donation & Support
|
## Donation & Support
|
||||||
|
|
||||||
If you like this project and interested in supporting its development, you can make a donation using the following services.
|
If you like this project and interested in supporting its development work, you are welcome to make a donation via the following links.
|
||||||
|
|
||||||
* [![GitHub](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/dukefirehawk)
|
* [![GitHub Sponsor](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/dukefirehawk)
|
||||||
* [paypal](https://paypal.me/dukefirehawk?country.x=MY&locale.x=en_US) service
|
* [Paypal Donation](https://paypal.me/dukefirehawk?country.x=MY&locale.x=en_US)
|
||||||
|
|
|
@ -1,18 +1,20 @@
|
||||||
# Docker setup
|
# Runing Ancillary Docker Services
|
||||||
|
|
||||||
|
The required ancillary services required by the framework can be run using the compose files provided in this folder.
|
||||||
|
|
||||||
## PostreSQL
|
## PostreSQL
|
||||||
|
|
||||||
### Starting the PostreSQL container
|
### Starting the PostreSQL container
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose -f docker-compose-pg.yml up -d
|
docker compose -f docker-compose-pg.yml -p pg up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
### Stopping the PostreSQL container
|
### Stopping the PostreSQL container
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose -f docker-compose-pg.yml stop
|
docker compose -f docker-compose-pg.yml -p pg stop
|
||||||
docker compose -f docker-compose-pg.yml down
|
docker compose -f docker-compose-pg.yml -p pg down
|
||||||
```
|
```
|
||||||
|
|
||||||
### Checking the PostreSQL container log
|
### Checking the PostreSQL container log
|
||||||
|
@ -41,20 +43,20 @@
|
||||||
### Starting the MariaDB container
|
### Starting the MariaDB container
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose -f docker-compose-mariadb.yml up -d
|
docker compose -f docker-compose-mariadb.yml -p maria up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
### Stopping the MariaDB container
|
### Stopping the MariaDB container
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose -f docker-compose-mariadb.yml stop
|
docker compose -f docker-compose-mariadb.yml -p maria stop
|
||||||
docker compose -f docker-compose-mariadb.yml down
|
docker compose -f docker-compose-mariadb.yml -p maria down
|
||||||
```
|
```
|
||||||
|
|
||||||
### Checking the MariaDB container log
|
### Checking the MariaDB container log
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker logs docker-mariadb-1 -f
|
docker logs maria-mariadb-1 -f
|
||||||
```
|
```
|
||||||
|
|
||||||
## MySQL
|
## MySQL
|
||||||
|
@ -62,20 +64,20 @@
|
||||||
### Starting the MySQL container
|
### Starting the MySQL container
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose -f docker-compose-mysql.yml up -d
|
docker compose -f docker-compose-mysql.yml -p mysql up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
### Stopping the MySQL container
|
### Stopping the MySQL container
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose -f docker-compose-mysql.yml stop
|
docker compose -f docker-compose-mysql.yml -p mysql stop
|
||||||
docker compose -f docker-compose-mysql.yml down
|
docker compose -f docker-compose-mysql.yml -p mysql down
|
||||||
```
|
```
|
||||||
|
|
||||||
### Checking the MySQL container log
|
### Checking the MySQL container log
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker logs docker-mysql-1 -f
|
docker logs mysql-mysql-1 -f
|
||||||
```
|
```
|
||||||
|
|
||||||
## MongoDB
|
## MongoDB
|
||||||
|
@ -83,20 +85,20 @@
|
||||||
### Starting the MongoDB container
|
### Starting the MongoDB container
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose -f docker-compose-mongo.yml up -d
|
docker compose -f docker-compose-mongo.yml -p mongo up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
### Stopping the MongoDB container
|
### Stopping the MongoDB container
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose -f docker-compose-mongo.yml stop
|
docker compose -f docker-compose-mongo.yml -p mongo stop
|
||||||
docker compose -f docker-compose-mongo.yml down
|
docker compose -f docker-compose-mongo.yml -p mongo down
|
||||||
```
|
```
|
||||||
|
|
||||||
### Checking the MongoDB container log
|
### Checking the MongoDB container log
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker logs docker-mongo-1 -f
|
docker logs mongo-mongo-1 -f
|
||||||
```
|
```
|
||||||
|
|
||||||
## rethinkDB
|
## rethinkDB
|
||||||
|
@ -104,20 +106,20 @@
|
||||||
### Starting the rethinkDB container
|
### Starting the rethinkDB container
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose -f docker-compose-rethinkdb.yml up -d
|
docker compose -f docker-compose-rethinkdb.yml -p rethink up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
### Stopping the rethinkDB container
|
### Stopping the rethinkDB container
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose -f docker-compose-rethinkdb.yml stop
|
docker compose -f docker-compose-rethinkdb.yml -p rethink stop
|
||||||
docker compose -f docker-compose-rethinkdb.yml down
|
docker compose -f docker-compose-rethinkdb.yml -p rethink down
|
||||||
```
|
```
|
||||||
|
|
||||||
### Checking the rethinkDB container log
|
### Checking the rethinkDB container log
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker logs docker-rethinkdb-1 -f
|
docker logs rethink-rethinkdb-1 -f
|
||||||
```
|
```
|
||||||
|
|
||||||
## Redis
|
## Redis
|
||||||
|
@ -125,18 +127,18 @@
|
||||||
### Starting the Redis container
|
### Starting the Redis container
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose -f docker-compose-redis.yml up -d
|
docker compose -f docker-compose-redis.yml -p redis up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
### Stopping the Redis container
|
### Stopping the Redis container
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose -f docker-compose-redis.yml stop
|
docker compose -f docker-compose-redis.yml -p redis stop
|
||||||
docker compose -f docker-compose-redis.yml down
|
docker compose -f docker-compose-redis.yml -p redis down
|
||||||
```
|
```
|
||||||
|
|
||||||
### Checking the Redis container log
|
### Checking the Redis container log
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker logs docker-redis-1 -f
|
docker logs redis-redis-1 -f
|
||||||
```
|
```
|
|
@ -9,11 +9,11 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- "mariadb:/var/lib/mysql"
|
- "mariadb:/var/lib/mysql"
|
||||||
networks:
|
networks:
|
||||||
- webnet
|
- appnet
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
mariadb:
|
mariadb:
|
||||||
driver: local
|
driver: local
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
webnet:
|
appnet:
|
|
@ -12,7 +12,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- "mongo:/data/db"
|
- "mongo:/data/db"
|
||||||
networks:
|
networks:
|
||||||
- webnet
|
- appnet
|
||||||
|
|
||||||
mongo-express:
|
mongo-express:
|
||||||
image: mongo-express
|
image: mongo-express
|
||||||
|
@ -34,4 +34,4 @@ volumes:
|
||||||
driver: local
|
driver: local
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
webnet:
|
appnet:
|
|
@ -9,11 +9,11 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- "mysql:/var/lib/mysql"
|
- "mysql:/var/lib/mysql"
|
||||||
networks:
|
networks:
|
||||||
- webnet
|
- appnet
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
mysql:
|
mysql:
|
||||||
driver: local
|
driver: local
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
webnet:
|
appnet:
|
|
@ -21,11 +21,11 @@ services:
|
||||||
- PGADMIN_DEFAULT_EMAIL=admin@mydomain.com
|
- PGADMIN_DEFAULT_EMAIL=admin@mydomain.com
|
||||||
- PGADMIN_DEFAULT_PASSWORD=Qwerty
|
- PGADMIN_DEFAULT_PASSWORD=Qwerty
|
||||||
networks:
|
networks:
|
||||||
- webnet
|
- appnet
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
db:
|
db:
|
||||||
driver: local
|
driver: local
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
webnet:
|
appnet:
|
|
@ -10,11 +10,11 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- "redis:/data"
|
- "redis:/data"
|
||||||
networks:
|
networks:
|
||||||
- webnet
|
- appnet
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
redis:
|
redis:
|
||||||
driver: local
|
driver: local
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
webnet:
|
appnet:
|
|
@ -9,11 +9,11 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- "rethinkdb:/data"
|
- "rethinkdb:/data"
|
||||||
networks:
|
networks:
|
||||||
- webnet
|
- appnet
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
rethinkdb:
|
rethinkdb:
|
||||||
driver: local
|
driver: local
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
webnet:
|
appnet:
|
|
@ -1,5 +1,7 @@
|
||||||
# Performance Testing
|
# Performance Testing
|
||||||
|
|
||||||
|
The performance test can be run with the following tools.
|
||||||
|
|
||||||
## WRT
|
## WRT
|
||||||
|
|
||||||
```bash
|
```bash
|
Loading…
Reference in a new issue