-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
49 lines (46 loc) · 1.03 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
version: "3.7"
services:
app:
build:
args:
user: dean
uid: 1001
context: ./.docker
dockerfile: Dockerfile
image: laravelapp
container_name: laravelapp-app
restart: unless-stopped
working_dir: /var/www/
volumes:
- ./src:/var/www
- ./.docker/php/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
networks:
- laravelapp
db:
image: mysql:5.7
container_name: laravelapp-db
restart: unless-stopped
environment:
MYSQL_DATABASE: 'lara_db'
MYSQL_ROOT_PASSWORD: 'root'
MYSQL_PASSWORD: 'lara_password'
MYSQL_USER: 'lara_user'
volumes:
- ./db/mysql:/var/lib/mysql
- ./.docker/mysql/my.cnf:/etc/mysql/my.cnf
networks:
- laravelapp
nginx:
image: nginx:1.17-alpine
container_name: laravelapp-nginx
restart: unless-stopped
ports:
- 8008:80
volumes:
- ./src:/var/www
- ./.docker/nginx:/etc/nginx/conf.d
networks:
- laravelapp
networks:
laravelapp:
driver: bridge