-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal.yml
63 lines (57 loc) · 1.28 KB
/
local.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
version: "3"
services:
postgres:
build:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
image: dotnet_app_production_postgres
container_name: dotnet_app_local_postgres
volumes:
- dotnet_app_local_postgres_data:/var/lib/postgresql/data:Z
networks:
- dotnet_app_network
expose:
- "5432"
env_file:
- ./.envs/.local/.postgres
api:
build:
context: .
dockerfile: ./compose/local/dotnet/Dockerfile
image: dotnet_app_local_api
container_name: dotnet_app_local_api
volumes:
- .:/app
networks:
- dotnet_app_network
depends_on:
- postgres
ports:
- "8080:8080"
env_file:
- ./.envs/.local/.dotnet
- ./.envs/.local/.postgres
command: /start
nginx:
build:
context: .
dockerfile: ./compose/local/frontend/Dockerfile
args:
- API_URL=http://localhost:8080/api
image: dotnet_app_local_nginx
container_name: dotnet_app_local_nginx
volumes:
- .:/app
networks:
- dotnet_app_network
depends_on:
- api
ports:
- "1234:1234"
command: /start
volumes:
dotnet_app_local_sqlserver_data: {}
dotnet_app_local_postgres_data: {}
networks:
dotnet_app_network:
external: true