-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (47 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
47 lines (47 loc) · 1.04 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
version: '3'
networks:
laravel:
driver: bridge
services:
site:
image: nginx:stable-alpine
container_name: site
ports:
- "8080:80"
volumes:
- .:/www
- ./docker/nginx:/etc/nginx/conf.d
depends_on:
- app
networks:
- laravel
app:
build:
context: docker/php
container_name: app
volumes:
- .:/www
- ./docker/php/supervisor:/etc/supervisor/custom.d/
- ./docker/php/config/docker-php-ext-xdebug.ini:/usr/local/etc/php/conf.d/docker-php-xdebug.ini
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
PHP_IDE_CONFIG: serverName=Docker
networks:
- laravel
pgsql:
build:
context: docker/postgres
container_name: pgsql
restart: unless-stopped
tty: true
ports:
- "5432:5432"
volumes:
- ./docker/datas/postgres:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
networks:
- laravel