docker-compose.yaml
unknown
yaml
a year ago
1.5 kB
3
Indexable
Never
#Это docker-compose.yaml #После того, как мы собрали образ из Dockerfile командой #docker build -t my_docker . #Мы можем проверить работу сервисов с базой данных. #Запускаем командой #docker-compose run --rm -p 8080:8080 ylavka-container bash -c 'make service-start-release' version: "2.3" services: postgres: container_name: db image: postgres:15.2-alpine environment: - POSTGRES_DB=postgres - POSTGRES_USER=postgres - POSTGRES_PASSWORD=password ports: - 5432 volumes: - ./postgresql/schemas:/docker-entrypoint-initdb.d - ./.pgdata:/var/lib/postgresql/data networks: - postgres ylavka-container: image: my_docker privileged: true environment: - POSTGRES_DB=postgres - POSTGRES_USER=postgres - POSTGRES_PASSWORD=password - PREFIX=${PREFIX:-~/.local} - CC - CCACHE_DIR=/enrollment_template/.ccache - CCACHE_HASHDIR - CCACHE_NOHASHDIR - CCACHE_PREFIX - CCACHE_SIZE - CMAKE_OPTS - CORES_DIR=/cores - CXX - MAKE_OPTS volumes: - ${TC_CORES_DIR:-./.cores}:/cores:rw ports: - 8080:8080 depends_on: - postgres networks: - postgres networks: postgres: driver: bridge