M
Size: a a a
M
ВС
V
ВС
M
M
С
$arr = [
'level1' => [
0 => [
'zero' => 0, // Здесь только 1 элемент.
],
// ...
],
// ...
];
$arr = [
'level1' => [
'zero' => 0,
// ...
],
// ...
];
DK
M
ВС
version: '3'
services:
backend:
build: docker/backend
depends_on:
- db
- smtp
volumes:
- .:/app
command: ./artisan serve --host=0.0.0.0 --port=8080
ports:
- '8000:8080'
networks:
- backend
db:
image: postgres:11
restart: always
env_file: docker/db/postgres/local.env
volumes:
- ./docker/db/postgres/local.conf:/etc/postgresql/postgresql.conf
command: postgres -c 'config_file=/etc/postgresql/postgresql.conf'
ports:
- '5433:5433' # if postgres is running on the host
networks:
- backend
smtp:
build: docker/smtp
ports:
- '1080:1080'
networks:
- backend
networks:
backend:
V
version: '3'
services:
backend:
build: docker/backend
depends_on:
- db
- smtp
volumes:
- .:/app
command: ./artisan serve --host=0.0.0.0 --port=8080
ports:
- '8000:8080'
networks:
- backend
db:
image: postgres:11
restart: always
env_file: docker/db/postgres/local.env
volumes:
- ./docker/db/postgres/local.conf:/etc/postgresql/postgresql.conf
command: postgres -c 'config_file=/etc/postgresql/postgresql.conf'
ports:
- '5433:5433' # if postgres is running on the host
networks:
- backend
smtp:
build: docker/smtp
ports:
- '1080:1080'
networks:
- backend
networks:
backend:
ВС
ВС
FROM php:7.2
RUN apt-get update
RUN apt-get install -y unzip git libpq-dev
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN docker-php-ext-install pdo_pgsql
WORKDIR /app
ВС
FROM ruby:2.6
RUN gem install mailcatcher
# smtp port
EXPOSE 1025
# webserver port
EXPOSE 1080
CMD ["mailcatcher", "-f", "--ip=0.0.0.0"]
M
ВС
ВС
M
ВС
M