Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/borisgra/docker-yaml
Install odoo(16,15,14,12 and others) versions on GCP VM by docker compose
https://github.com/borisgra/docker-yaml
docker docker-compose odoo pgadmin4 pgsql
Last synced: about 2 months ago
JSON representation
Install odoo(16,15,14,12 and others) versions on GCP VM by docker compose
- Host: GitHub
- URL: https://github.com/borisgra/docker-yaml
- Owner: borisgra
- Created: 2023-02-22T12:51:02.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-02T12:47:54.000Z (2 months ago)
- Last Synced: 2024-11-02T13:27:41.952Z (2 months ago)
- Topics: docker, docker-compose, odoo, pgadmin4, pgsql
- Language: Shell
- Homepage:
- Size: 92.8 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Install docker with odoo 16,15,14 and other ver. , pgsql , pgadmin4
Attention!!! When create odoo base - base name needed start with odooXX (XX - ODOO_VERSION) or change dbfilter in odoo.conf
VM instances (min):
system disk- 10G for 1 odoo, 20G for several one (Ubuntu min)
procesor 1
memory min 1.7G
open ports in firewall ( gcloud compute firewall-rules create my-odoo-rule --allow tcp:5010,tcp:10010-10020 --source-ranges=0.0.0.0/0
# install docker and start pgsql:version+pgAdmin4:version+odoo:version (version in .env file)
sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/borisgra/docker-yaml/main/install_docker.sh)"By default ODOO_VERSION=16 (in .env),If needed, change ODOO_VERSION :
1) sudo docker compose down
2) sudo nano .env # change ODOO_VERSION (for ODOO_VERSION<10 - POSTGRES_VERSION < 14)
3) sudo docker compose upsudo docker compose stop
sudo docker compose startsudo docker compose down
sudo docker compose -f compose-hook.yaml # with webhook (before start: sh create_service.sh)
sudo docker compose -f compose.yaml -f compose-odoo-14-15-16.yaml up # pgsql:13.10+pgAdmin4:last+odoo:16+15+14+11
sudo docker compose -f compose-bd.yaml up # pgsql:version+pgAdmin4:last
sudo docker compose -f compose-odoo-ver.yaml up # odoo:ver
sudo docker compose -f compose-odoo-old.yaml up # ODOO_VERSION_OLD=sudo docker compose restart odoo # restart service
sudo docker compose down # delete all containers
sudo docker compose down --remove-orphans # if error: while removing network: network yamls_default
sudo docker container stop odoo
sudo docker container rm odoo
sudo docker images
sudo docker rmi # remove images (image1 image2 image3 ...)
sudo service docker restart
sudo systemctl stop docker.socketsudo git stash save # clear last modif in current git
sudo git clone https://github.com/mmodrive/OdooX_Addons.git ~/docker-yaml/config_X/addons # load addons
# Dockerfile (add needed package in image)
sudo docker build -t odoo:9.0 . # replase odoo:9.0 build new image (Dockerfile in current dir)https://www.baeldung.com/ops/root-user-password-docker-container
sudo docker compose exec -it odoo bash # NOT root acccess
sudo docker compose exec -it -u root odoo bash # root acccesssudo docker compose cp ~/daas_2023-01-23_17-51-22.dump pgadmin:/var/lib/pgadmin/storage/mail_gmail.com
sudo service docker restart
sudo systemctl stop docker.socket
sudo systemctl status docker.serviceGCP:
https://stackoverflow.com/questions/67265822/where-are-my-storage-pd-capacity-charges-coming-from
gcloud compute instances list
gcloud compute zones list
export from VM/Images (not MashinaImages) !!
gcloud compute images export --destination-uri gs://vpn-gra/images/image-vpn-pgsql-admin4.tar.gz --image image-vpn-pgsql-admin4
gsutil mv -r gs://vpn-gra/images/* gs://store-gra/images
gsutil cp gs://public-gra/temp/daas_2023-01-23_17-51-22.dump ~https://rominirani.com/hands-on-guide-to-scheduling-vm-instances-to-start-and-stop-a079a50e16c6
DELETE !!!
gsutil -m retention event release gs://boris-gra/images/*.*
gsutil retention temp release gs://boris-gra/images/*.*