-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·72 lines (68 loc) · 1.51 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
64
65
66
67
68
69
70
71
72
version: "3"
services:
# App php-fpm service
app:
build:
context: ./docker/php
args:
APP_ENV: ${APP_ENV}
PHP_VERSION: ${PHP_VERSION}
REMOTE_WORKING_DIR: ${REMOTE_WORKING_DIR}
container_name: app
restart: unless-stopped
volumes:
- ${LOCAL_WORKING_DIR}:${REMOTE_WORKING_DIR}
- ./docker/php/config/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
env_file: .env
ports:
- 9001:9001
networks:
- app-network
queue:
container_name: queue
build: ./docker/queue
volumes:
- ${LOCAL_WORKING_DIR}:${REMOTE_WORKING_DIR}
depends_on:
- database
networks:
- app-network
nginx:
image: nginx:alpine
container_name: nginx
restart: unless-stopped
volumes:
- ${LOCAL_WORKING_DIR}:${REMOTE_WORKING_DIR}
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./docker/nginx/conf.d/:/etc/nginx/conf.d/
- ./docker/nginx/ssl/:/etc/nginx/ssl/
ports:
- 80:80
- 443:443
depends_on:
- app
networks:
- app-network
database:
image: mysql:5.7
container_name: database
environment:
MYSQL_DATABASE: 'laravel'
MYSQL_USER: 'user'
MYSQL_PASSWORD: 'secret'
MYSQL_ROOT_PASSWORD: 'password'
ports:
- 3306:3306
volumes:
- database-volume:/var/lib/mysql
depends_on:
- app
networks:
- app-network
# Docker Volumes
volumes:
database-volume:
# Docker Networks
networks:
app-network:
driver: bridge