-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
43 lines (38 loc) · 793 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
43 lines (38 loc) · 793 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
version: '4.30'
services:
backend:
image: php:8.3-apache
container_name: sfrMap-app
ports:
- 82:80
volumes:
- ./:/var/www/html
build:
context: .
dockerfile: Dockerfile-back
environment:
- DATABASE_URL=mysql://root@127.0.0.1:3306/sfreactmap
frontend:
image: node:22-alpine
container_name: sfrMap-vite
ports:
- 3000:3000
volumes:
- ./:/usr/src/app
build:
context: .
dockerfile: Dockerfile-front
db-mysql:
image: mysql:8.0
container_name: sfrMap-db
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
volumes:
- mysql_data:/var/lib/mysql
# mongodb:
# image: mongo:latest
# volumes:
# - mongodb_data:/data/db
volumes:
mysql_data:
# mongodb_data: