Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
108 lines (101 loc) · 2.63 KB
/
Copy pathdocker-compose.yml
File metadata and controls
108 lines (101 loc) · 2.63 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
services:
app:
image: petmingle-laravel-app:local
build:
context: .
dockerfile: docker/php/Dockerfile
args:
UID: ${UID:-1000}
GID: ${GID:-1000}
container_name: petmingle-app
restart: unless-stopped
working_dir: /var/www/html
volumes:
- ./:/var/www/html
- vendor:/var/www/html/vendor
depends_on:
mysql:
condition: service_healthy
networks:
- petmingle
nginx:
image: nginx:1.25-alpine
container_name: petmingle-nginx
restart: unless-stopped
ports:
- "${APP_PORT:-8000}:80"
volumes:
- ./:/var/www/html:ro
- vendor:/var/www/html/vendor:ro
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- app
networks:
- petmingle
mysql:
image: mysql:8.0
container_name: petmingle-mysql
restart: unless-stopped
ports:
- "${FORWARD_DB_PORT:-3306}:3306"
environment:
MYSQL_DATABASE: ${DB_DATABASE:-petmingle}
MYSQL_USER: ${DB_USERNAME:-petmingle}
MYSQL_PASSWORD: ${DB_PASSWORD:-secret}
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD:-root}
volumes:
- mysql_data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-u", "root", "-p${DB_ROOT_PASSWORD:-root}"]
interval: 10s
timeout: 5s
retries: 10
networks:
- petmingle
node:
image: node:24-alpine
container_name: petmingle-node
working_dir: /app
ports:
- "127.0.0.1:${FRONTEND_PORT:-5174}:5173"
profiles:
- frontend
volumes:
- ./frontend:/app
- frontend_node_modules:/app/node_modules
command: sh -c "npm ci && npm run dev -- --host 0.0.0.0"
networks:
- petmingle
mailpit:
image: axllent/mailpit:v1.18
container_name: petmingle-mailpit
restart: unless-stopped
ports:
- "${FORWARD_MAILPIT_PORT:-8025}:8025"
networks:
- petmingle
soketi:
image: quay.io/soketi/soketi:1.6-16-alpine
container_name: petmingle-soketi
restart: unless-stopped
ports:
- "${FORWARD_PUSHER_PORT:-6001}:6001"
environment:
SOKETI_DEBUG: "false"
SOKETI_DEFAULT_APP_ID: "${PUSHER_APP_ID:-petmingle}"
SOKETI_DEFAULT_APP_KEY: "${PUSHER_APP_KEY:-petmingle-key}"
SOKETI_DEFAULT_APP_SECRET: "${PUSHER_APP_SECRET:-petmingle-secret}"
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:6001/ready >/dev/null || exit 1"]
interval: 5s
timeout: 2s
retries: 10
networks:
- petmingle
networks:
petmingle:
driver: bridge
volumes:
mysql_data:
vendor:
frontend_node_modules: