forked from gamonoid/icehrm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-prod.yaml
48 lines (44 loc) · 951 Bytes
/
docker-compose-prod.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
version: "3.5"
services:
mysql-prod:
image: mysql:5.7
ports:
- 3129:3306
environment:
MYSQL_ROOT_PASSWORD: IceHrmR00t
MYSQL_USER: prod
MYSQL_PASSWORD: prod
MYSQL_DATABASE: icehrm
volumes:
- ./docker/init.sql:/docker-entrypoint-initdb.d/setup.sql
- ./docker/prod/db_data:/var/lib/mysql
icehrm-prod:
build:
context: ./
dockerfile: Dockerfile-prod
ports:
- 3128:8070
volumes:
- ./docker/prod/app_data:/var/www/html/app/data
icehrm-worker:
build:
context: ./
dockerfile: Dockerfile-worker
args:
- EXE_ENV=prod
volumes:
- ./docker/prod/app_data:/var/www/html/app/data
phpmyadmin:
depends_on:
- mysql-prod
image: phpmyadmin
ports:
- "3130:80"
environment:
PMA_HOSTS: mysql-prod
PMA_PORT: 3129
PMA_USER: prod
PMA_PASSWORD: prod
volumes:
db_data:
app_data: