Added volumes to docker-compose project
This commit is contained in:
parent
b0b30a75b4
commit
4570124a83
|
@ -21,4 +21,5 @@ RUN dotnet publish "./Wave.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:Us
|
|||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app/publish .
|
||||
RUN mkdir ./files
|
||||
ENTRYPOINT ["dotnet", "Wave.dll"]
|
|
@ -14,6 +14,8 @@ services:
|
|||
- database:db
|
||||
environment:
|
||||
- "WAVE_ConnectionStrings__DefaultConnection=Host=db; Username=wave; Password=development"
|
||||
volumes:
|
||||
- wave-files:/app/files
|
||||
networks:
|
||||
- wave
|
||||
database:
|
||||
|
@ -23,9 +25,13 @@ services:
|
|||
- "POSTGRES_DB=wave"
|
||||
- "POSTGRES_USER=wave"
|
||||
- "POSTGRES_PASSWORD=development"
|
||||
volumes:
|
||||
- wave-db:/var/lib/postgresql
|
||||
networks:
|
||||
- wave
|
||||
|
||||
|
||||
volumes:
|
||||
wave-files:
|
||||
wave-db:
|
||||
networks:
|
||||
wave:
|
Loading…
Reference in a new issue