forked from opensourcepos/opensourcepos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
56 lines (53 loc) · 1.29 KB
/
docker-compose.dev.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
version: '2.2'
volumes:
uploads:
driver: local
logs:
driver: local
mysql:
driver: local
networks:
app_net:
services:
mysql:
image: mariadb:10.5
container_name: mysql
restart: always
expose:
- "3306"
networks:
- app_net
volumes:
- ./app/Database/database.sql:/docker-entrypoint-initdb.d/database.sql
- mysql:/var/lib/mysql:rw
environment:
- MYSQL_ROOT_PASSWORD=pointofsale
- MYSQL_DATABASE=ospos
- MYSQL_USER=admin
- MYSQL_PASSWORD=pointofsale
ospos:
build:
context: .
args:
- USERID=${USERID}
- GROUPID=${GROUPID}
target: ospos_dev
container_name: ospos_dev
restart: always
user: "${USERID}:${GROUPID}"
depends_on:
- mysql
ports:
- "80:80"
networks:
- app_net
volumes:
- .:/app
environment:
- CI_ENVIRONMENT=development
- MYSQL_USERNAME=admin
- MYSQL_PASSWORD=pointofsale
- MYSQL_DB_NAME=ospos
- MYSQL_HOST_NAME=mysql
- PHP_TIMEZONE=UTC
- XDEBUG_CONFIG=client_host=172.17.0.1