forked from Aukeijzer/Software-Ecosystems
-
Notifications
You must be signed in to change notification settings - Fork 0
/
server-compose.yml
117 lines (110 loc) · 2.37 KB
/
server-compose.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#
# This file is used to compose the project on the server
# It has some server specific server-side only specifications
#
services:
####
# Frontend
nextjs:
build:
context: ./front-end/ecodash/
dockerfile: ./Dockerfile
networks:
- secodash-network
restart: always
####
# nginx proxy server
nginx:
build:
context: ./front-end/nginx/
dockerfile: ./Dockerfile
ports:
- 80:80
- 443:443
secrets:
- ssl-certificate
- ssl-private-key
networks:
- secodash-network
restart: always
#####
# Spider
spider-app:
container_name: spider-app
build:
context: ./spider/
dockerfile: ./Dockerfile
networks:
- secodash-network
secrets:
- git-api-token
environment:
API_Token_File: /run/secrets/git-api-token
ASPNETCORE_URLS: http://*:5205
Docker_Environment: server
#####
# Backend
db:
container_name: db
image: postgres
networks:
- secodash-network
secrets:
- db-password
restart: always
build:
context: ./database
dockerfile: db.Dockerfile
environment:
POSTGRES_Username: postgres
POSTGRES_PASSWORD_FILE: /run/secrets/db-password
volumes:
- postgres-data:/var/lib/postgresql/data
####
# Backend (service) layer application
backend-app:
container_name: backend-app
build:
context: ./back-end/
dockerfile: ./Dockerfile
secrets:
- backend-secrets
environment:
backend-secrets: /run/secrets/backend-secrets
ASPNETCORE_URLS: http://*:5003
Docker_Environment: server
networks:
- secodash-network
restart: always
depends_on:
- db
#####
# Data processor docker.
data-processor-app:
container_name: data-processor-app
build:
context: ./data_processor/
dockerfile: ./Dockerfile
networks:
- secodash-network
restart: always
####
# Volumes, networks and secrets
volumes:
postgres-data:
secrets:
backend-secrets:
file: secrets/backend-secrets.json
db-password:
file: secrets/db-password.txt
git-api-token:
file: secrets/spider-git-api-token.txt
ssl-certificate:
file: secrets/certs/fullchain.pem
ssl-private-key:
file: secrets/certs/privkey.pem
networks:
secodash-network:
name: secodash-network
driver: bridge
external: true