-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·46 lines (46 loc) · 901 Bytes
/
docker-compose.yml
File metadata and controls
executable file
·46 lines (46 loc) · 901 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
45
46
version: '3'
services:
nginx:
image: nginx
ports:
- "8080:80"
volumes:
- ./sites:/public_html
- ./docker/nginx.conf:/etc/nginx/nginx.conf
- ./docker/vhost.conf:/etc/nginx/conf.d/default.conf
networks:
- appnet
app:
build:
context: ./
dockerfile: docker/app.docker
volumes:
- ./sites:/public_html
networks:
- appnet
mysql:
image: mysql:8
command:
- "--default-authentication-plugin=mysql_native_password"
environment:
- "MYSQL_ROOT_PASSWORD=1234"
- "MYSQL_DATABASE=ssl_accounts"
- "TZ=Asia/Dhaka"
volumes:
- ./data:/var/lib/mysql
ports:
- "33062:3306"
networks:
- appnet
# redis:
# image: redis
# ports:
# - "63791:6379"
# networks:
# - appnet
networks:
appnet:
driver: "bridge"
volumes:
data:
driver: "local"