forked from opensourcepos/opensourcepos
-
Notifications
You must be signed in to change notification settings - Fork 43
/
docker-compose.dev.yml
41 lines (37 loc) · 950 Bytes
/
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
version: '3.4'
volumes:
uploads:
driver: local
services:
ospos:
build:
context: .
target: ospos_dev
container_name: ospos_dev
restart: always
depends_on:
- mysql
ports:
- "80:80"
volumes:
- .:/app
environment:
- PHP_TIMEZONE=UTC
- MYSQL_USERNAME=admin
- MYSQL_PASSWORD=pointofsale
- MYSQL_DB_NAME=ospos
- MYSQL_HOST_NAME=mysql
- XDEBUG_CONFIG=remote_host=172.17.0.1
mysql:
image: mariadb:10.5
container_name: mysql
restart: always
ports:
- "3306:3306"
volumes:
- ./database/database.sql:/docker-entrypoint-initdb.d/database.sql
environment:
- MYSQL_ROOT_PASSWORD=pointofsale
- MYSQL_DATABASE=ospos
- MYSQL_USER=admin
- MYSQL_PASSWORD=pointofsale