-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (43 loc) · 912 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (43 loc) · 912 Bytes
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
version: '3'
services:
nginx:
image: nginx:latest
links:
- php-app
ports:
- 80:80
volumes:
- ./public:/var/www/html
- ./storage/logs/nginx:/var/log/nginx
- ./config/nginx:/etc/nginx/conf.d
restart: always
php-app:
build: .
links:
- postgres
- redis
volumes:
- ./public:/var/www/html
- ./storage/logs/php-app:/var/log/php-app
- ./config/php-app:/usr/local/etc/php/conf.d
- ./composer:/usr/local/bin/composer
restart: always
cap_add:
- ALL
cap_drop:
- NET_ADMIN
- SYS_ADMIN
postgres:
image: postgres:9.6
restart: always
ports:
- 5432:5432
volumes:
- ./storage/services/postgres/data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: superSecurePassword
redis:
image: redis:3.2
restart: always
ports:
- 6379:6379