-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
executable file
·91 lines (84 loc) · 1.65 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
services:
app:
build:
context: .
args:
user: ${USER:-wallace}
uid: ${UID:-1000}
dockerfile: Dockerfile
working_dir: /var/www/
volumes:
- ./:/var/www/
restart: unless-stopped
depends_on:
- redis
- queue
- mysql
networks:
- ticket
queue:
build:
context: .
args:
user: ${USER:-wallace}
uid: ${UID:-1000}
dockerfile: Dockerfile
restart: always
command: "php artisan queue:work"
volumes:
- ./:/var/www
depends_on:
- redis
networks:
- ticket
nginx:
image: nginx:alpine
restart: always
ports:
- 80:80
volumes:
- ./:/var/www
- ./docker/nginx/:/etc/nginx/conf.d/
networks:
- ticket
mysql:
image: mysql:latest
restart: always
ports:
- 3307:3306
volumes:
- mysql-data:/var/lib/mysql
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
LANG: C.UTF-8
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 5
networks:
- ticket
redis:
image: redis:latest
ports:
- 6379:6379
networks:
- ticket
mailpit:
image: axllent/mailpit:latest
restart: on-failure
tty: true
ports:
- 1025:1025 # SMTP server
- 8025:8025 # Web UI
networks:
- ticket
volumes:
mysql-data:
networks:
ticket:
driver: bridge