-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (39 loc) · 809 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (39 loc) · 809 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
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
container_name: bukutamu-app
restart: always
volumes:
- .:/var/www/html
ports:
- "8000:8000"
working_dir: /var/www/html
depends_on:
- db
nginx:
image: nginx:alpine
container_name: laravel-nginx
restart: always
ports:
- "80:80"
volumes:
- .:/var/www/html
- ./nginx.conf:/etc/nginx/conf.d/default.conf
depends_on:
- app
db:
image: mysql:8.0
container_name: laravel-db
restart: always
environment:
MYSQL_ROOT_PASSWORD: your_root_password
MYSQL_DATABASE: laravel_db
MYSQL_USER: laravel_user
MYSQL_PASSWORD: your_user_password
volumes:
- db_data:/var/lib/mysql
volumes:
db_data: