-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
49 lines (46 loc) · 1.18 KB
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
43
44
45
46
47
48
49
services:
db:
image: postgres
container_name: postgres_bugget
environment:
POSTGRES_HOST_AUTH_METHOD: trust
ports: ["5432:5432"]
volumes:
- ./backend/bugget-api/Bugget.DbUp/sql:/docker-entrypoint-initdb.d:ro
profiles: ["full", "back", "front"]
bugget-api:
build:
context: ./backend/bugget-api
dockerfile: Bugget/Dockerfile
container_name: bugget-api
environment:
ASPNETCORE_ENVIRONMENT: Development
POSTGRES_CONNECTION_STRING: Host=db;Port=5432;Database=postgres;Username=postgres
ports: ["7777:7777"]
depends_on:
db:
condition: service_started
develop:
watch:
- action: sync
path: ./backend/bugget-api
target: /app
profiles: ["full", "back"]
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: frontend_bugget
environment:
API_URL: http://localhost:7777/
BASE_PATH: /
ports: ["80:80"]
develop:
watch:
- action: sync
path: ./frontend
target: /app
profiles: ["full", "front"]
# глобальные опции
x-defaults: &restart_policy
restart: unless-stopped