-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (51 loc) · 1.09 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
version: "3.9"
services:
app:
build:
args:
user: dev
uid: 1000
context: ./
dockerfile: build/docker/app.dockerfile
image: laradocker
container_name: laradocker-app
restart: unless-stopped
working_dir: /var/www/html
expose:
- 9000
volumes:
- ./html:/var/www/html
networks:
- laradocker-network
db:
image: mysql:8.0
container_name: laradocker-db
restart: unless-stopped
ports:
- "3307:3306"
environment:
MYSQL_DATABASE: laradocker
MYSQL_ROOT_PASSWORD: password
MYSQL_PASSWORD: password
MYSQL_USER: lduser
SERVICE_TAGS: dev
SERVICE_NAME: mysql
volumes:
- laradocker-mysql:/var/lib/mysql
networks:
- laradocker-network
nginx:
image: nginx:alpine
container_name: laradocker-nginx
ports:
- 80:80
volumes:
- ./html:/var/www/html
- ./build/etc/nginx/conf.d/app.conf:/etc/nginx/conf.d/default.conf
networks:
- laradocker-network
networks:
laradocker-network:
driver: bridge
volumes:
laradocker-mysql: