то после запуска нового проекта командой docker-compose up я получаю базы данных с прошлого проекта.
version: '3'
services:
web:
image: nginx
volumes:
- ./.docker/conf/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./www:/var/www/html
ports:
- 80:80
depends_on:
- php
- db
php:
build: .docker
volumes:
- ./.docker/conf/php/php.ini:/usr/local/etc/php/conf.d/php.ini
- ./.docker/conf/php/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
- ./www:/var/www/html
db:
image: postgres:10.1
restart: on-failure
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
ports:
- 5432:5432
volumes:
- ./.docker/conf/postgres/:/docker-entrypoint-initdb.d/
keycloak:
image: quay.io/keycloak/keycloak:legacy
container_name: keycloak_akfk
restart: on-failure
environment:
DB_VENDOR: POSTGRES
DB_ADDR: db
DB_DATABASE: ${DB_NAME}
DB_USER: ${DB_USER}
DB_SCHEMA: public
DB_PASSWORD: ${DB_PASSWORD}
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: admin
# Uncomment the line below if you want to specify JDBC parameters. The parameter below is just an example, and it shouldn't be used in production without knowledge. It is highly recommended that you read the PostgreSQL JDBC driver documentation in order to use it.
#JDBC_PARAMS: "ssl=true"
ports:
- 8080:8080
volumes:
- ./.docker/data_keycloak:/data
FROM php:8.1.0-fpm
RUN apt-get update && apt-get install -y libxml2-dev \
&& pear install -a SOAP-0.13.0 \
&& docker-php-ext-install soap;
MAINTAINER Descamps Antoine <antoine.descamps@ineat-conseil.fr>
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng-dev \
libicu-dev \
libpq-dev \
libxpm-dev \
libvpx-dev \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-install -j$(nproc) intl \
&& docker-php-ext-install -j$(nproc) pgsql \
&& docker-php-ext-install -j$(nproc) pdo_pgsql \
&& docker-php-ext-install -j$(nproc) exif \
&& docker-php-ext-configure gd \
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
{
"enable-cors": true,
}