This repository has been archived by the owner on Sep 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yml
91 lines (83 loc) · 1.92 KB
/
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
version: '3.9'
services:
webinterface:
build: app
container_name: elearning-app
hostname: app
depends_on:
- mainapi
environment:
NODE_APP: elearning-interface
NODE_ENV: development
networks:
- elearningnet
mainapi:
build: main-api
container_name: elearning-mainapi
hostname: api
volumes:
- ./data/files:/files
depends_on:
- mongo
- usersapi
- statisticsapi
networks:
- elearningnet
usersapi:
build: users-api
container_name: elearning-usersapi
hostname: users
depends_on:
- sql
networks:
- elearningnet
statisticsapi:
build: statistics-api
container_name: elearning-statisticsapi
hostname: statistics
environment:
FLASK_APP: app
FLASK_HOST: 0.0.0.0
FLASK_ENV: development
networks:
- elearningnet
sql:
build: sql
container_name: elearning-sql
hostname: sql
environment:
POSTGRES_PASSWORD: 1234
POSTGRES_DB: elearning
volumes:
- ./data/sql:/var/lib/postgresql/data
- ./sql/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- elearningnet
mongoexpress:
image: mongo-express:0.54.0
container_name: elearning-mongo-express
environment:
ME_CONFIG_MONGODB_OPTIONS_EDITORTHEME: "dracula"
ME_CONFIG_MONDODB_URL: mongodb://dbuser:dbpass@mongo:27017
ME_CONFIG_ENABLE_ADMIN: 'true'
ME_CONFIG_MONGODB_ADMINUSERNAME: dbuser
ME_CONFIG_MONGODB_ADMINPASSWORD: dbpass
depends_on:
- mongo
networks:
- elearningnet
mongo:
build: mongo
container_name: elearning-mongo
hostname: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: dbuser
MONGO_INITDB_ROOT_PASSWORD: dbpass
MONGO_INITDB_DATABASE: elearning
volumes:
- ./data/mongo:/data/db
networks:
- elearningnet
networks:
elearningnet:
name: elearningnet