Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (72 loc) · 1.86 KB
/
Copy pathdocker-compose.yml
File metadata and controls
78 lines (72 loc) · 1.86 KB
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
version: "4.0"
services:
app:
build:
context: .
dockerfile: Dockerfile
image: qpos-app
container_name: qpos-app
restart: unless-stopped
working_dir: /var/www
volumes:
- .:/var/www
- ./docker-compose/php/local.ini:/usr/local/etc/php/conf.d/local.ini # PHP config if needed
networks:
- qpos-network
depends_on:
- db
environment:
SERVICE_NAME: app
SERVICE_TAGS: dev
db:
image: mysql:8.0
container_name: qpos-db
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: qpos
MYSQL_USER: user
MYSQL_PASSWORD: pass
ports:
- "3306:3306"
volumes:
- db-data:/var/lib/mysql
networks:
- qpos-network
nginx:
image: nginx:alpine
container_name: qpos-nginx
restart: unless-stopped
ports:
- "80:80" # HTTP port
# - "443:443" # Uncomment this for HTTPS (SSL) support
volumes:
- .:/var/www:cached
- ./docker-compose/nginx:/etc/nginx/conf.d
depends_on:
- app
networks:
- qpos-network
node:
# Optional platform flag for Mac Silicon (M1/M2/M3)
platform: linux/amd64
build:
context: .
dockerfile: Dockerfile.node
image: qpos-node
container_name: qpos-node
ports:
- "3000:3000"
- "3001:3001"
restart: unless-stopped
working_dir: /var/www
volumes:
- ./:/var/www
- /var/www/node_modules
networks:
- qpos-network
networks:
qpos-network:
driver: bridge
volumes:
db-data: