-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·44 lines (43 loc) · 941 Bytes
/
docker-compose.yml
File metadata and controls
executable file
·44 lines (43 loc) · 941 Bytes
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
services:
app:
build:
context: .
dockerfile: docker/Dockerfile
container_name: ozerka-app
volumes:
- ./:/app
- ./docker/Caddyfile:/etc/frankenphp/Caddyfile
- ./docker/logs:/var/log/caddy
ports:
- "80:80" # HTTP
- "443:443" # HTTPS
- "443:443/udp"# HTTP/3
- "5173:5173" # Vite dev server
restart: unless-stopped
env_file:
- .env
depends_on:
- db
tty: true
node:
image: node:22
working_dir: /app
volumes:
- ./:/app
ports:
- "5173:5173"
db:
image: mysql:8.0
container_name: ozerka-mysql
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- mysql_data:/var/lib/mysql
ports:
- "3306:3306"
volumes:
mysql_data: