билинговая системаТиповая схема биллинга.
int[] N = {1, 2, 3, 4, 5, 6, 7, 6, 8, 9, 1, 2, 3};
Integer[] wrappedN = Arrays.stream(N)
.boxed()
.toArray(Integer[]::new);
Set<Integer> resultSet = new HashSet<Integer>(Arrays.asList(wrappedN));
System.out.println(resultSet.size());
System.out.println(Arrays.stream(N).boxed().collect(Collectors.toSet()).size());
version: '3.1'
services:
db:
image: mariadb:10.2
restart: on-failure
ports:
- "3306:3306"
volumes:
- ./db:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: your_root_pass_here
MYSQL_DATABASE: db_name_here
MYSQL_USER: db_user_here
MYSQL_PASSWORD: user_pass_here
nginx:
image: nginx
restart: on-failure
ports:
- "80:80"
links:
- wordpress:php-fpm-server
depends_on:
- wordpress
volumes:
- $HOME/DDK/nginx-default.conf:/etc/nginx/conf.d/default.conf:ro
- ./development/src:/var/www/html:ro
wordpress:
image: php:5.6-fpm
restart: on-failure
links:
- db:mysql
depends_on:
- db
expose:
- "9000"
- "9900"
volumes:
- /mnt/bindfs/fire-cacher-dv1:/var/www/html
/home/user/Project/fire-cache/development/src /mnt/bindfs/fire-cacher-dv1 fuse.bindfs force-user=www-data,force-group=www-data,create-for-user=user,create-for-group=user,perms=0000:u+rwD:g+rD:o+rD 0 0
docker-compose up -d
и останавливай после окончания работы docker-compose stop
. Проект закончен? Значит docker-compose down -v