-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (70 loc) · 1.58 KB
/
docker-compose.yml
File metadata and controls
73 lines (70 loc) · 1.58 KB
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
73
version: '3'
services:
mysql:
image: mysql:5.7
container_name: db
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_USER: ${DB_USERNAME}
MYSQL_TCP_PORT: ${DB_PORT}
ports:
- "3307:${DB_PORT}"
networks:
- mynet
volumes:
- mysql_data:/var/lib/mysql
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "8100:8100"
networks:
- mynet
volumes:
- ./:/app
# - ./conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
# - ./conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini
depends_on:
- mysql
entrypoint: [ "/bin/bash", "-c" ]
command:
- |
npm install
php artisan key:generate && php artisan migrate
php artisan serve --host=0.0.0.0 --port=8100
# webserver:
# image: nginx:latest
# ports:
# - 8080:80
# volumes:
# - ./nginx/default.conf:/etc/nginx/conf.d/default.conf
# - ./:/app
redis:
image: redis:4.0
container_name: app_redis
ports:
- "6379:6379"
networks:
- mynet
# mailpit:
# image: axllent/mailpit
# container_name: mailpit
# restart: always
# volumes:
# - ./data:/data
# ports:
# - 8025:8025
# - 1025:1025
# environment:
# MP_MAX_MESSAGES: 5000
# MP_DATA_FILE: /data/mailpit.db
# MP_SMTP_AUTH_ACCEPT_ANY: 1
# MP_SMTP_AUTH_ALLOW_INSECURE: 1
volumes:
mysql_data:
networks:
mynet:
driver: bridge