version: '3.3'
services:
db:
build: ./db
container_name: postgres
ports:
- "5431:6666"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres_test
- POSTGRES_DB=db_test
volumes:
- ./data:/data
bot:
build: .
image: mydiscordbot
var cs = @"Host=db,6666;UserId=postgres;Password=postgres;Database=db_name";
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env
WORKDIR /app
# Copy csproj and restore as distinct layers
COPY *.csproj ./
COPY NuGet.Config ./
RUN dotnet restore
# Copy everything else and build
COPY . ./
RUN dotnet publish -c Release -o out
# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:6.0
WORKDIR /app
COPY --from=build-env /app/out .
ENTRYPOINT ["dotnet", "Botv5.dll"]
version: "3"
services:
bot:
build: .
image: mydiscordbot
FROM php:7.2-apache
RUN apt-get update && apt-get install -y locales
# Locale
RUN sed -i -e \
's/# ru_RU.UTF-8 UTF-8/ru_RU.UTF-8 UTF-8/' /etc/locale.gen \
&& locale-gen
ENV LANG ru_RU.UTF-8
ENV LANGUAGE ru_RU:ru
ENV LC_LANG ru_RU.UTF-8
ENV LC_ALL ru_RU.UTF-8
FROM postgres:alpine
ADD scripts/1_init.sql /docker-entrypoint-initdb.d
ADD scripts/2_copy.sql /docker-entrypoint-initdb.d
RUN chmod a+r /docker-entrypoint-initdb.d/*
EXPOSE 6666
version: '3.3'
services:
db:
build: ./db
container_name: postgres
ports:
- "5431:6666"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres_test
- POSTGRES_DB=db_test
volumes:
- ./data:/data
version: '3.3'
services:
db:
build: ./db
container_name: postgres
ports:
- "5431:6666"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres_test
- POSTGRES_DB=db_test
volumes:
- ./data:/data
var cs = "Host=db;Username=postgres;Password=postgres_test;Port:6666;Database=db_test";
К примеру:
"container.id",
"container.image.name",
"container.image.tag",
"container.name",
"container.runtime",
Из них, как я понимаю, мне нужно указать, массив только не понимаю куда(