crated volume for attachments

This commit is contained in:
slawk0
2025-01-05 00:24:28 +01:00
parent 334c14bd9e
commit 3439d4b9de
3 changed files with 24 additions and 8 deletions

View File

@@ -1,8 +1,12 @@
version: '3.8'
services:
relay-server:
build:
context: ./server
dockerfile: Dockerfile
env_file:
- server/.env
environment:
SERVER_PORT: ${SERVER_PORT}
JWT_SECRET: ${JWT_SECRET}
@@ -11,6 +15,8 @@ services:
PG_PASSWORD: ${PG_PASSWORD}
PG_DATABASE: ${PG_DATABASE}
PG_HOST: db
volumes:
- attachments:/usr/src/app/attachments
ports:
- "3000"
depends_on:
@@ -36,6 +42,8 @@ services:
image: postgres:latest
restart: always
user: postgres
env_file:
- server/.env
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
@@ -57,4 +65,5 @@ networks:
driver: bridge
volumes:
postgres-data:
postgres-data:
attachments: