-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduction.yml
71 lines (65 loc) · 1.52 KB
/
production.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
66
67
68
69
70
71
version: "3"
services:
postgres:
build:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
image: dotnet_app_production_postgres
container_name: dotnet_app_postgres
volumes:
- production_postgres_data:/var/lib/postgresql/data:Z
expose:
- 5432
env_file:
- ./.envs/.production/.postgres
api:
build:
context: .
dockerfile: ./compose/production/dotnet/Dockerfile
image: dotnet_app_production_api
container_name: dotnet_app_api
depends_on:
- postgres
expose:
- 8080
env_file:
- ./.envs/.production/.dotnet
- ./.envs/.production/.postgres
command: /start
nginx:
build:
context: .
dockerfile: ./compose/production/frontend/Dockerfile
args:
- API_URL=https://dotnet-api.serranomorantepatricio.info/api
image: dotnet_app_production_nginx
container_name: dotnet_app_nginx
depends_on:
- api
expose:
- 1234
command: /start
swag:
# Swag
# ---------------
image: ghcr.io/linuxserver/swag
container_name: swag
cap_add:
- NET_ADMIN
environment:
- PUID=1000
- PGID=1000
- TZ=America/Guayaquil
- URL=serranomorantepatricio.info
- SUBDOMAINS=www,dotnet,dotnet-api
- VALIDATION=http
- STAGING=False
volumes:
- ./config:/config
ports:
- 443:443
- 80:80
restart: unless-stopped
volumes:
production_postgres_data: {}