-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
60 lines (60 loc) · 1.34 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
version: '3'
services:
######################################
# PHP-FPM Container
######################################
php-fpm:
container_name: php-fpm
image: petronetto/php7-alpine
environment:
XDEBUG_ENABLE: 1
XDEBUG_HOST: ${MY_IP} # .env
XDEBUG_REMOTE_PORT: 9000
NEWRELIC_ENABLED: 0
NEWRELIC_LICENSE: ""
POSTGRES_DB: homestead
POSTGRES_USER: homestead
POSTGRES_PASSWORD: secret
links:
- database
volumes:
- ./example:/app
######################################
# NGINX Container
######################################
nginx:
container_name: nginx
build: ./nginx
links:
- php-fpm
volumes:
- ./example:/app
ports:
- 8080:8080
######################################
# Caddy Container
######################################
caddy:
container_name: caddy
build: ./caddy
links:
- php-fpm
volumes:
- ./example:/app
ports:
- 8000:8080
######################################
# Database Container
######################################
database:
container_name: database
restart: always
image: postgres:alpine
ports:
- 5432:5432
environment:
POSTGRES_DB: homestead
POSTGRES_USER: homestead
POSTGRES_PASSWORD: secret
volumes:
- ./database:/var/lib/postgresql