-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (50 loc) · 1.04 KB
/
docker-compose.yml
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
version: "3.9"
services:
nodejs:
build:
context: server
dockerfile: tchat/Dockerfile
ports:
- "8082:8082"
volumes:
- ./server/tchat/src:/app/src
- ./server/tchat/public:/app/public
depends_on:
- db
db:
image: mariadb:10
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: boggle
MYSQL_USER: boggle
MYSQL_PASSWORD: password
ports:
- "3307:3306"
volumes:
- db:/var/lib/mysql
- ./server/sql:/docker-entrypoint-initdb.d
php:
build:
context: server
dockerfile: web/Dockerfile
ports:
- "8081:80"
volumes:
- ./server/web:/var/www/html
- /var/www/html/vendor
depends_on:
- db
vite:
build: client/vite
ports:
- "5173:5173"
env_file:
- .env
volumes:
- ./client/vite/src:/app/src
- ./client/vite/public:/app/public
cloudflared:
image: cloudflare/cloudflared:latest
command: tunnel --no-autoupdate run --token ${CLOUDFLARE_TUNNEL_TOKEN}
volumes:
db: