-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
66 lines (60 loc) · 1.14 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
# docker-compose versão 2
version: '2'
# Serviços
services:
# nginx
web:
image: nginx:latest
ports:
- "80:80"
volumes:
- ./conf/vhost.conf:/etc/nginx/conf.d/default.conf
- logs-web:/var/log/nginx
- /var/www/html:/var/www/html:cached
links:
- php:php
restart: always
network_mode: bridge
# php-fpm
php:
build: .
expose:
- "9000"
volumes:
- /var/www/html:/var/www/html:cached
- logs-php-fpm:/var/log/php-fpm
links:
- postgres:postgres
restart: always
network_mode: bridge
# postgres
postgres:
image: postgres:9.5
ports:
- "5433:5432"
environment:
POSTGRES_PASSWORD: 123
POSTGRES_USER: admin
volumes:
- pg-data:/var/lib/postgresql/data
restart: always
network_mode: bridge
# gearman
gearman:
image: artefactual/gearmand:1.1.17-alpine
ports:
- "4730:4730"
volumes:
- gearman-data:/etc
restart: always
network_mode: bridge
# Volumes
volumes:
logs-php-fpm:
driver: local
logs-web:
driver: local
pg-data:
driver: local
gearman-data:
driver: local