-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (50 loc) · 1.08 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
version: '3.2'
networks:
laravel:
services:
nginx:
build:
context: ./dockerfiles
dockerfile: nginx.dockerfile
container_name: versite_nginx
ports:
- "8080:80"
volumes:
- ./src:/var/www/html:delegated
depends_on:
- php
- postgres
networks:
- laravel
postgres:
image: postgres:14.7-alpine
container_name: versite_postgres
tty: true
ports:
- "6432:5432"
volumes:
- psql:/var/lib/postgresql/data
environment:
POSTGRES_DB: homestead
POSTGRES_USER: homestead
POSTGRES_PASSWORD: secret
PGDATA: /var/lib/postgresql/data/pgdata
networks:
- laravel
php:
build:
context: ./
dockerfile: dockerfiles/php.dockerfile
container_name: versite_php
volumes:
- ./src/app:/var/www/html/app
- ./src/bootstrap:/var/www/html/bootstrap
- ./src/storage:/var/www/html/storage
- ./src/config:/var/www/html/config
- type: bind
source: ./src/.env
target: /var/www/html/.env
networks:
- laravel
volumes:
psql: