-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (63 loc) · 1.3 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
version: '3'
services:
web:
container_name: webserver
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile-nginx
ports:
- "8080:80"
networks:
- workicenet
volumes:
- .:/var/www/html
depends_on:
- php
- mysql
php:
container_name: php
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
depends_on:
- mysql
volumes:
- .:/var/www/html
ports:
- "9000:9000"
networks:
- workicenet
php-worker:
container_name: worker
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
depends_on:
- mysql
volumes:
- .:/var/www/html
command: php artisan queue:work --queue=default,high,normal,low --tries=2 --timeout=40 --daemon
networks:
- workicenet
mysql:
image: mysql:5.7.29
container_name: mysql
restart: unless-stopped
tty: true
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: workice
MYSQL_USER: workice
MYSQL_ROOT_PASSWORD: secret
MYSQL_PASSWORD: secret
SERVICE_TAGS: dev
SERVICE_NAME: mysql
networks:
- workicenet
networks:
workicenet:
driver: bridge