-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathold_docker-compose.yml
73 lines (68 loc) · 1.42 KB
/
old_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
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:
- queue
- mysql
networks:
- development
queue:
build:
context: .
args:
user: ${USER:-wallace}
uid: ${UID:-1000}
dockerfile: Dockerfile
restart: always
command: ["php", "artisan", "queue:work", "--sleep=3", "--tries=3"]
volumes:
- ./:/var/www
depends_on:
- mysql
networks:
- development
nginx:
image: nginx:alpine
restart: always
ports:
- 80:80
volumes:
- ./:/var/www
- ./docker/nginx/:/etc/nginx/conf.d/
networks:
- development
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:
- development
volumes:
mysql-data:
networks:
development:
external: true