forked from informatici/openhospital-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
92 lines (86 loc) · 2 KB
/
docker-compose.yaml
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
version: "3.9"
x-repo: &repository-args
OH_CORE_BRANCH: develop
OH_API_BRANCH: develop
GITHUB_ORG: informatici
API_PORT: 8080
JWT_TOKEN_SECRET: 12345678909876543221pooiimmmdfoisjdfoijsdfjoidsjfoijsdoifjolsdnfsdfindisfniosdnfiosdnfionds
x-mariadb: &mariadb-env
<<: *repository-args
MARIADB_MYSQL_LOCALHOST_USER: "true"
MARIADB_SERVER: database
MARIADB_PORT: 3306
MARIADB_DATABASE: oh
MARIADB_ROOT_PASSWORD: root
MARIADB_USER: isf
MARIADB_PASSWORD: isf123
OH_DB_LANG: en
x-ui: &ui-env
<<: *repository-args
PUBLIC_URL: /
REACT_APP_USE_MOCK_API:
REACT_APP_BASE_PATH: http://localhost:8080
x-pg-admin: &pg-admin-env
PMA_HOST: "database"
PMA_PORT: 3306
PMA_USER: "root"
PMA_PASSWORD: "root"
services:
frontend:
build:
context: ./
dockerfile: ./docker/Dockerfile.frontend
environment: *ui-env
ports:
- 3030:3000
volumes:
- ./:/oh
- /oh/node_modules
- /oh/build
- /oh/docs
depends_on:
- backend
networks:
- openhospital
stdin_open: true
backend:
build:
context: ./docker
dockerfile: Dockerfile.backend
args:
<<: *mariadb-env
environment: *repository-args
ports:
- "8080:8080"
depends_on:
- database
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "10"
networks:
- openhospital
database:
build:
context: ./docker
dockerfile: Dockerfile.database
args: *mariadb-env
environment: *mariadb-env
ports:
- "3306:3306"
command: mysqld --sql_mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" --lower_case_table_names=1 --explicit_defaults_for_timestamp=OFF
networks:
- openhospital
db-admin:
image: phpmyadmin/phpmyadmin
ports:
- 9000:80
environment:
<<: *pg-admin-env
depends_on:
- database
networks:
- openhospital
networks:
openhospital: