-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (42 loc) · 1001 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
services:
laravel.test:
build:
context: .
dockerfile: Dockerfile.local
container_name: laravel_app
ports:
- "80:80"
volumes:
- .:/var/www
environment:
- APP_ENV=local
- APP_DEBUG=true
- DB_CONNECTION=pgsql
- DB_HOST=pgsql
- DB_PORT=5432
- DB_DATABASE=laravel
- DB_USERNAME=laravel
- DB_PASSWORD=secret
networks:
- sail
depends_on:
- pgsql
pgsql:
image: postgres:13
container_name: postgres_db
ports:
- "5432:5432"
environment:
- POSTGRES_DB=laravel
- POSTGRES_USER=laravel
- POSTGRES_PASSWORD=secret
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- sail
networks:
sail:
driver: bridge
volumes:
pgdata:
driver: local