-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·63 lines (58 loc) · 1.44 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'
networks:
"laravel_net":
driver: bridge
services:
nginx:
image: nginx:alpine
container_name: "laravel_nginx"
restart: unless-stopped
tty: true
ports:
- "${NGINX_PORT}:8000"
volumes:
- ./:/app
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php
- db
networks:
- "laravel_net"
db:
image: mysql:8.0
container_name: "laravel_db"
restart: unless-stopped
tty: true
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_USER: ${DB_USERNAME}
SERVICE_TAGS: dev
SERVICE_NAME: mysql
ports:
- 3306:3306
networks:
- "laravel_net"
php:
build:
context: .
dockerfile: Dockerfile
image: laravel_docker:latest
container_name: "laravel_php"
restart: unless-stopped
tty: true
working_dir: /app
volumes:
- ./:/app
ports:
- "${PHP_PORT}:9000"
networks:
- "laravel_net"
redis:
image: redis:alpine
container_name: "laravel_redis"
ports:
- "${REDIS_PORT}:6379"
networks:
- "laravel_net"