-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.fullstack.yml
65 lines (59 loc) · 1.6 KB
/
docker-compose.fullstack.yml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: "3.9"
services:
# dotnet-watch:
# environment:
# - DOTNET_RUNNING_IN_CONTAINER=1
# container_name: dotnet_watch
# image: mcr.microsoft.com/dotnet/sdk:5.0
# ports:
# - 8080:8080
# volumes:
# - ./:/app
# working_dir: /app/src/BoxToTabletop
# command: dotnet watch run --no-restore -- --run
#command: dotnet watch run --no-restore
#$command: ./build.sh watchapp
# web:
# build: .
# ports:
# - "8080:8080"
btt-server:
environment:
- DOTNET_RUNNING_IN_CONTAINER=1
container_name: btt-server
image: btt-server:latest
ports:
- "5000:80"
depends_on:
- "postgres"
btt-client:
container_name: btt-client
image: btt-client:latest
ports:
- "8092:80"
depends_on:
- "btt-server"
postgres:
image: "postgres:13-alpine"
# bindings:
# - port: 5432
# containerPort: 5432
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: "postgres"
POSTGRES_DB: "boxtotabletop"
POSTGRES_USER: "postgres"
volumes:
#- box-to-tabletop-data:/var/lib/postgresql/data
#- ./data/postgres:/var/lib/postgresql/data
# #- data:/var/lib/postgresql/data
- type: volume
source: db-data
target: /var/lib/postgresql/data
#
#volumes:
# data:
# name: box-to-tabletop-data
volumes:
db-data: