gistfile1.txt
· 696 B · Text
Raw
version: '2'
services:
mariadb:
image: mariadb:10.10
volumes:
- /volume1/docker/orangehrm/database/:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=orangehrm
- MYSQL_ROOT_USER=root
- MYSQL_DATABASE=orangehrm
orangehrm:
image: orangehrm/orangehrm:latest
ports:
- 80:80
- 443:443
environment:
- ORANGEHRM_DATABASE_HOST=mariadb
- ORANGEHRM_DATABASE_USER=root
- ORANGEHRM_DATABASE_PASSWORD=orangehrm
- ORANGEHRM_DATABASE_NAME=orangehrm
- PUID=1027
- PGID=100
volumes:
- /volume1/docker/orangehrm/config/:/orangehrm
depends_on:
- mariadb
links:
- mariadb:mariadb
1 | version: '2' |
2 | services: |
3 | mariadb: |
4 | image: mariadb:10.10 |
5 | volumes: |
6 | - /volume1/docker/orangehrm/database/:/var/lib/mysql |
7 | environment: |
8 | - MYSQL_ROOT_PASSWORD=orangehrm |
9 | - MYSQL_ROOT_USER=root |
10 | - MYSQL_DATABASE=orangehrm |
11 | |
12 | orangehrm: |
13 | image: orangehrm/orangehrm:latest |
14 | ports: |
15 | - 80:80 |
16 | - 443:443 |
17 | environment: |
18 | - ORANGEHRM_DATABASE_HOST=mariadb |
19 | - ORANGEHRM_DATABASE_USER=root |
20 | - ORANGEHRM_DATABASE_PASSWORD=orangehrm |
21 | - ORANGEHRM_DATABASE_NAME=orangehrm |
22 | - PUID=1027 |
23 | - PGID=100 |
24 | volumes: |
25 | - /volume1/docker/orangehrm/config/:/orangehrm |
26 | depends_on: |
27 | - mariadb |
28 | links: |
29 | - mariadb:mariadb |