This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
109 lines (84 loc) · 3.22 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Pending github issues
# https://github.com/docker/docker/issues/20708
# https://github.com/docker/compose/pull/2458
# https://github.com/docker/compose/issues/1617
version: '2'
services:
# ____________________________________________________________________________________________________________
# |____________________________________________________________________________________________________________|
database:
image: mdillon/postgis
container_name: drydock-database
env_file: .development.env
ports:
- "5432:5432"
cache:
image: redis:alpine
container_name: drydock-cache
ports:
- "6379"
# ____________________________________________________________________________________________________________
# |____________________________________________________________________________________________________________|
mail:
image: djfarrelly/maildev
container_name: drydock-email
ports:
- "8079:80"
# ____________________________________________________________________________________________________________
# |____________________________________________________________________________________________________________|
webapp:
# I keep the latest copy of the development container built.
image: atrauzzi/laravel-drydock
# If however you would like to modify or manage your own development image, comment out the above line
# and uncomment the next two lines.
#dockerfile: /Dockerfile
#build: .
container_name: drydock-webapp
env_file: .development.env
user: ${UID}
volumes:
# Bind-mounts for dev.
- ".:/var/www"
- "./resources/php-fpm.conf:/etc/php/7.1/fpm/php-fpm.conf"
- "./resources/php-fpm.www.conf:/etc/php/7.1/fpm/pool.d/www.conf"
- "./resources/crontab:/etc/cron.d/laravel"
# Before anyone loses their mind over this... It's only for development!
- "/home:/home"
- "/etc/passwd:/etc/passwd"
- "/etc/shadow:/etc/shadow"
- "/etc/group:/etc/group"
web:
image: nginx:alpine
container_name: drydock-web
volumes:
- "./public:/var/www/public"
- "./resources/nginx.conf:/etc/nginx/nginx.conf"
- "./resources/nginx.default.conf:/etc/nginx/conf.d/default.conf"
ports:
- "8080:80"
# ____________________________________________________________________________________________________________
# |____________________________________________________________________________________________________________|
cron:
image: atrauzzi/laravel-drydock
# See: https://github.com/docker/compose/issues/1617
#extends: webapp
container_name: drydock-cron
# vixie cron just doesn't like running in a container, use devcron instead!
entrypoint: "devcron.py"
command: ["/etc/cron.d/laravel"]
env_file: .development.env
user: ${UID}
volumes:
- ".:/var/www"
- "./resources/crontab:/etc/cron.d/laravel"
worker:
image: atrauzzi/laravel-drydock
# See: https://github.com/docker/compose/issues/1617
#extends: webapp
container_name: drydock-worker
entrypoint: "php"
command: "artisan queue:listen --sleep=8"
env_file: .development.env
user: ${UID}
volumes:
- ".:/var/www"