-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (58 loc) · 1.13 KB
/
docker-compose.yml
File metadata and controls
64 lines (58 loc) · 1.13 KB
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
version: '3.9'
services:
app:
build:
context: .
dockerfile: docker/php/Dockerfile
image: modusbuild/app:dev
volumes:
- ./:/var/www/html
environment:
APP_ENV: local
APP_DEBUG: 'true'
PHP_IDE_CONFIG: "serverName=modusbuild"
depends_on:
- postgres
- redis
networks:
- modusbuild
nginx:
image: nginx:1.25-alpine
ports:
- "8080:80"
volumes:
- ./:/var/www/html
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- app
networks:
- modusbuild
postgres:
image: postgres:15-alpine
environment:
POSTGRES_DB: modusbuild
POSTGRES_USER: modusbuild
POSTGRES_PASSWORD: secret
ports:
- "5433:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- modusbuild
redis:
image: redis:7-alpine
ports:
- "6380:6379"
networks:
- modusbuild
mailhog:
image: mailhog/mailhog:v1.0.1
ports:
- "8025:8025"
networks:
- modusbuild
volumes:
postgres-data:
networks:
modusbuild:
driver: bridge