forked from aschmelyun/docker-compose-laravel
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
63 lines (57 loc) · 1.15 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
version: '3'
networks:
development:
services:
site:
build:
context: .
dockerfile: nginx.dockerfile
container_name: ${APP_NAME}-nginx
ports:
- 80:80
volumes:
- ./src:/var/www/html:delegated
depends_on:
- php
- redis
- database
- mailhog
networks:
- development
database:
image: postgres:13.1-alpine
container_name: ${APP_NAME}-database
restart: unless-stopped
tty: true
ports:
- 5432:5432
environment:
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_DATABASE}
networks:
- development
php:
build:
context: .
dockerfile: php.dockerfile
container_name: ${APP_NAME}-php
volumes:
- ./src:/var/www/html:delegated
networks:
- development
redis:
image: redis:alpine
container_name: ${APP_NAME}-redis
restart: unless-stopped
ports:
- 6379:6379
networks:
- development
mailhog:
image: mailhog/mailhog:latest
container_name: ${APP_NAME}-mailhog
ports:
- 1025:1025
networks:
- development