#!/usr/bin/env python3
a = [
{'www0': [{'id':'1', 'article_name':'laptop', 'url':'http://', 'price':'100'}] },
{'www1': [{'id':'1', 'article_name':'laptop', 'url':'http://', 'price':'200'}] }
]
print( a[0]['www0'].append({'id':'3', 'article_name':'laptop', 'url':'http://', 'price':'300'}))
version: "3.1"
services:
mariadb:
image: mariadb:latest
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: dolibarr
web:
image: tuxgasy/dolibarr
environment:
DOLI_DB_HOST: mariadb
DOLI_DB_USER: root
DOLI_DB_PASSWORD: root
DOLI_DB_NAME: dolibarr
DOLI_URL_ROOT: 'http://0.0.0.0'
PHP_INI_DATE_TIMEZONE: 'Europe/Paris'
ports:
- "80:80"
links:
- mariadb
adminer:
image: adminer:latest
restart: always
ports:
- 8080:8080
links:
- mariadb
version: "3.1"
services:
db:
image: percona:latest
container_name: myname.db
restart: on-failure
ports:
- 127.0.0.150:3306:3306
expose:
- 3306
environment:
- MYSQL_ROOT_PASSWORD=rdkw1UDddqOEF4L1pmNkcyQ2oL
- MYSQL_DATABASE=dolibarr
- MYSQL_ROOT_HOST=%
web:
image: tuxgasy/dolibarr
environment:
DOLI_DB_HOST: mysql
DOLI_DB_USER: root
DOLI_DB_PASSWORD: rdkw1UDddqOEF4L1pmNkcyQ2oL
DOLI_DB_NAME: dolibarr
DOLI_URL_ROOT: 'http://127.0.0.1'
PHP_INI_DATE_TIMEZONE: 'Europe/Paris'
ports:
- "81:80"