|
@@ -1,52 +0,0 @@
|
1
|
|
-echo "Déploiement de Odoo"
|
2
|
|
-echo "Installation des dépendances"
|
3
|
|
-apt update && apt dist-upgrade
|
4
|
|
-sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release docker docker-compose
|
5
|
|
-echo "Configuration du docker"
|
6
|
|
-read -p "Mot de passe de la base de données : " mdp
|
7
|
|
-read -p "Port : " port
|
8
|
|
-echo "version: \"2.1\"
|
9
|
|
-services:
|
10
|
|
- odoo:
|
11
|
|
- image: lefilament/odoo:14.0
|
12
|
|
- container_name: odoo14
|
13
|
|
- depends_on:
|
14
|
|
- - db
|
15
|
|
- tty: true
|
16
|
|
- ports:
|
17
|
|
- - $port:$port
|
18
|
|
- volumes:
|
19
|
|
- - filestore:/opt/odoo/data:z
|
20
|
|
- restart: unless-stopped
|
21
|
|
- command:
|
22
|
|
- - odoo
|
23
|
|
-
|
24
|
|
- db:
|
25
|
|
- image: postgres:13-alpine
|
26
|
|
- container_name: odoo14_db
|
27
|
|
- environment:
|
28
|
|
- POSTGRES_USER: \"odoo\"
|
29
|
|
- POSTGRES_PASSWORD: \"$mdp\"
|
30
|
|
- volumes:
|
31
|
|
- - db:/var/lib/postgresql/data:z
|
32
|
|
- restart: unless-stopped
|
33
|
|
-
|
34
|
|
-networks:
|
35
|
|
- default:
|
36
|
|
- driver_opts:
|
37
|
|
- encrypted: 1
|
38
|
|
-
|
39
|
|
-volumes:
|
40
|
|
- filestore:
|
41
|
|
- db:
|
42
|
|
-
|
43
|
|
-"> docker-compose.yml
|
44
|
|
-
|
45
|
|
-#docker-compose up -d db
|
46
|
|
-#docker-compose up -d odoo
|
47
|
|
-
|
48
|
|
-#docker-compose exec odoo python3 /opt/odoo/odoo/odoo-bin -c /opt/odoo/etc/odoo.conf --db_host db --db_port 5432 --db_user odoo --db_password LeVraiMotDePasse --init base --stop-after-init --no-http --without-demo=all
|
49
|
|
-
|
50
|
|
-#docker-compose exec -u root odoo apt update
|
51
|
|
-#docker-compose exec -u root odoo apt install git -y
|
52
|
|
-
|