forked from buggregator/laravel-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 955 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
version: "2"
services:
php:
build: "./docker/server"
restart: unless-stopped
environment:
DB_CONNECTION: pgsql
DB_HOST: db
DB_DATABASE: homestead
DB_USERNAME: homestead
DB_PASSWORD: secret
ports:
- 8000:8000
- 1025:1025
- 9912:9912
- 9913:9913
volumes:
- ./:/app
depends_on:
- db
node:
image: node:14-bullseye-slim
volumes:
- ./:/app:rw
working_dir: /app
command: >
bash -c "npm install
&& npm run watch"
db:
image: postgres
environment:
POSTGRES_USER: homestead
POSTGRES_DB: homestead
POSTGRES_PASSWORD: secret
adminer:
image: adminer
restart: unless-stopped
ports:
- 8011:8080
depends_on:
- db