forked from Aukeijzer/Software-Ecosystems
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
132 lines (123 loc) · 2.58 KB
/
docker-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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
#
# This is the compose file used for development purposes. For more information read the documentation
#
services:
####
# Frontend
nextjs:
build:
context: ./front-end/ecodash/
dockerfile: ./Dockerfile
ports:
- 3000:3000
networks:
- secodash-network
####
# 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
#####
# 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: local
ports:
- 5205:5205
#####
# SQL Database
db:
container_name: db
image: postgres
networks:
- secodash-network
secrets:
- postgres-password
restart: always
build:
context: ./database
dockerfile: db.Dockerfile
environment:
POSTGRES_Username: postgres
POSTGRES_PASSWORD_FILE: /run/secrets/postgres-password
volumes:
- postgres-data:/var/lib/postgresql/data
####
# Database browser
adminer:
image: adminer
ports:
- 8080:8080
networks:
- secodash-network
restart: always
####
# 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: local
ports:
- 5003:5003
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
ports:
- 5000:5000
####
# Volumes, networks and secrets
volumes:
postgres-data:
secrets:
backend-secrets:
file: secrets/backend-secrets.json
postgres-password:
file: secrets/postgres-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