Untitled
unknown
yaml
2 years ago
1.4 kB
5
Indexable
# docker-compose up ylavka-container version: "3.7" services: db: image: postgres:15.2-alpine environment: - POSTGRES_DB=my-db # change ? - POSTGRES_USER=postgres - POSTGRES_PASSWORD=password ports: - '5432:5432' # if you want to access pg locally (e.g. test via `psql ...`) volumes: - './postgresql/schemas:/docker-entrypoint-initdb.d' - './.pgdata:/var/lib/postgresql/data' networks: - postgres enrollment_template-container: build: context: . # change if needed dockerfile: ./Dockerfile # change if needed privileged: true environment: - POSTGRES_HOST=db - POSTGRES_DB=my-db # change ? - 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: - './:/enrollment_template' - './third_party/userver/tools/docker:/tools:ro' - '${TC_CORES_DIR:-./.cores}:/cores:rw' ports: - 8080:8080 depends_on: - postgres