-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 949 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (38 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: '3.8'
services:
db:
image: postgres:15
container_name: photomap_db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: photomap
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
restart: always
api:
build:
context: ./PhotoMapAPI
container_name: photomap_api
environment:
ASPNETCORE_ENVIRONMENT: Development
ConnectionStrings__DefaultConnection: Host=db;Port=5432;Database=photomap;Username=postgres;Password=postgres
ports:
- "5001:80"
depends_on:
- db
frontend:
build:
context: ./PhotoMapFrontend
container_name: photomap_frontend
ports:
- "5173:5173"
depends_on:
- api
environment:
VITE_API_URL: http://localhost:5001
# Или: VITE_API_URL: http://api:80 — если всё внутри контейнеров
volumes:
pgdata: