-
-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (47 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
50 lines (47 loc) · 1.03 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
services:
app:
build:
context: .
dockerfile: Dockerfile
target: development
args:
USER_ID: ${USER_ID:-1000}
GROUP_ID: ${GROUP_ID:-1000}
container_name: genealogy-app
restart: unless-stopped
ports:
- "${APP_PORT:-8080}:8080"
volumes:
- .:/var/www/html
networks:
- genealogy-network
depends_on:
- db
db:
image: mysql:8.4
container_name: genealogy-db
ports:
- "${DB_EXTERNAL_PORT:-3306}:3306"
environment:
MYSQL_DATABASE: "${DB_DATABASE:-genealogy}"
MYSQL_ALLOW_EMPTY_PASSWORD: true
volumes:
- ./.docker/data:/var/lib/mysql
networks:
- genealogy-network
vite:
image: node:23-alpine
container_name: genealogy-vite
working_dir: /app
ports:
- "${VITE_PORT:-5173}:${VITE_PORT:-5173}"
volumes:
- .:/app
networks:
- genealogy-network
command: sh -c "npm install && npm run dev"
stdin_open: true
tty: true
networks:
genealogy-network:
driver: bridge