forked from WWBN/AVideo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (47 loc) · 911 Bytes
/
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
version: "3.8"
services:
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
container_name: avideo_db
#tty: true
ports:
- 3306
environment:
- MYSQL_USER=youphptube
- MYSQL_PASSWORD=youphptube
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=avideo
- TZ=UTC
expose:
- 3306
volumes:
- ./storage/data:/var/lib/mysql
networks:
- app_net
web:
depends_on:
- db
hostname: avideo_web
build: .
environment:
- DEBIAN_FRONTEND=noninteractive
- TZ=UTC
- webSiteRootURL
- HTTP_PORT
- HTTPS_PORT
- Socket_PORT
expose:
- 80
- 443
#volumes:
# - .:/var/www/avideo:rw
networks:
- app_net
ports:
- '${HTTP_PORT}:80'
- '${HTTPS_PORT}:443'
#Docker Networks
networks:
app_net:
driver: bridge