-
Notifications
You must be signed in to change notification settings - Fork 27
/
docker-compose.yml
46 lines (43 loc) · 963 Bytes
/
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
version: '3'
services:
server:
extra_hosts:
- "host.docker.internal:host-gateway"
build:
context: .
dockerfile: ./Dockerfile
target: server
volumes:
- .:/srv/app
links:
- php
ports:
- '8888:80'
php:
extra_hosts:
- "host.docker.internal:host-gateway"
build:
context: .
dockerfile: ./Dockerfile
target: php_dev
volumes:
- ./.docker/php/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
- ~/.config/composer:/home/prod/.composer
- .:/srv/app
database:
image: postgres:15.4-alpine
environment:
POSTGRES_DB: symfony
POSTGRES_PASSWORD: root
POSTGRES_USER: root
volumes:
- database_data:/var/lib/postgresql/data:rw
ports:
- "5432:5432"
###> symfony/mailer ###
mailer:
image: schickling/mailcatcher
ports: ["1025:1025", "1080:1080"]
###< symfony/mailer ###
volumes:
database_data: