-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (57 loc) · 1.23 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
51
52
53
54
55
56
57
58
59
60
61
62
63
version: '3.8'
services:
# certbot:
# image: certbot/certbot
# restart: unless-stopped
# volumes:
# - ./data/certbot/conf:/etc/letsencrypt
# - ./data/certbot/www:/var/www/certbot
# PHP Service
php:
container_name: bot7_php
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/var/www/html
networks:
- laravel_network
# MySQL Service
mysql:
image: mysql:8.3.0
container_name: bot7_mysql
restart: unless-stopped
environment:
MYSQL_DATABASE: bot7db
MYSQL_PASSWORD: root
MYSQL_ROOT_PASSWORD: root
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
networks:
- laravel_network
# Nginx Service
nginx:
build:
context: .
dockerfile: ./nginx/Dockerfile
container_name: bot7_nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/certs:/etc/nginx/certs
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- .:/var/www/html
# - ./data/certbot/conf:/etc/letsencrypt
# - ./data/certbot/www:/var/www/certbot
depends_on:
- php
networks:
- laravel_network
networks:
laravel_network:
driver: bridge
volumes:
mysql_data: