-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·78 lines (74 loc) · 1.53 KB
/
docker-compose.yml
File metadata and controls
executable file
·78 lines (74 loc) · 1.53 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
74
75
76
77
78
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
image: laravel-app
container_name: laravel-app
restart: unless-stopped
tty: true
environment:
SERVICE_NAME: app
SERVICE_TAGS: dev
MAIL_HOST: mailpit
MAIL_PORT: 1025
working_dir: /var/www
volumes:
- .:/var/www
- ./vendor:/var/www/vendor
- ./node_modules:/var/www/node_modules
networks:
- app-network
- haproxy-network
webserver:
image: nginx:alpine
container_name: nginx
restart: unless-stopped
tty: true
ports:
- "8000:80"
volumes:
- .:/var/www
- ./docker/nginx/conf.d/:/etc/nginx/conf.d/
networks:
- app-network
- haproxy-network
db:
image: mysql:5.7
container_name: mysql
restart: unless-stopped
tty: true
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: laravel
MYSQL_ROOT_PASSWORD: root
MYSQL_PASSWORD: root
volumes:
- dbdata:/var/lib/mysql
networks:
- app-network
- haproxy-network
mmailpit:
image: axllent/mailpit
container_name: mailpit
restart: unless-stopped
ports:
- "1025:1025" # SMTP port
- "8025:8025" # Web UI port
networks:
- app-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8025"]
interval: 30s
timeout: 10s
retries: 3
networks:
app-network:
driver: bridge
haproxy-network:
driver: bridge
volumes:
dbdata:
driver: local