-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
88 lines (73 loc) · 2.36 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
### IngeServices Microservices Architecture Example.
### Creator/Owner: Gustavo Poveda - 2020/1st Quarantine.
### Requirements: Ubuntu 16lts or better, Docker, Docker-Compose.
### Getting Started
# Clone repository from GitHub --> git clone https://github.com/dominusbelial/IngeServices.git
### Prerequisites
# Host: Ubuntu 16lts Desktop/Server or better with Docker, Docker-Compose tools.
### Installing
# 1. bash/terminal cd to downloaded repository, execute the following command.
# $ docker-compose up --build
# 2. wait for the following message on console ---> READY Server listening on http://0.0.0.0:3002
# 3. browse to http://127.0.0.1/ user:user password:abcd1234
### Notes
# * if your user is not part of docker group, you need to prepend "sudo" to all bash commands.
# * nuxtfront access with user:user password:abcd1234
# * strapiback ports 1337 for backend configuration, user: admin pass: abcd1234
# * jsreport ports 5488 for backend configuration, user: admin pass: abcd1234
# * example website only works on docker host/nginx locahost/127.0.0.1 at port 80/433.
# * accept the localhost sample certificate to browse the crud/report demo example.
version: '3.7'
services:
nginxfront:
build: "./nginxfront"
ports:
- "80:80"
- "443:443"
hostname: nginxfront
init: true
restart: always
strapiback:
build: "./strapiback"
init: true
hostname: strapiback
restart: always
environment:
DATABASE_HOST: mysqldb
DATABASE_PORT: 3306
DATABASE_NAME: IngeServices
DATABASE_USERNAME: backendUser
DATABASE_PASSWORD: abcd1234
depends_on:
- mysqldb
nuxtfront:
build: "./nuxtfront"
init: true
hostname: nuxtfront
restart: always
depends_on:
- strapiback
jsreport:
build: "./jsreport"
init: true
hostname: jsreport
restart: always
depends_on:
- strapiback
mysqldb:
build: "./mysqldb"
command: --default-authentication-plugin=mysql_native_password
init: true
hostname: mysqldb
restart: always
environment:
MYSQL_INITDB_SKIP_TZINFO: 1
MYSQL_ROOT_PASSWORD: abcd1234
MYSQL_DATABASE: IngeServices
MYSQL_USER: backendUser
MYSQL_PASSWORD: abcd1234
volumes:
- ${PWD}/IngeServicesDataFile:/var/lib/mysql
volumes:
IngeServicesDataFile:
driver: local