-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (57 loc) · 1.51 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
57
58
59
60
61
version: "3.8"
services:
front:
build:
context: .
dockerfile: ./dockerfiles/front/Dockerfile
volumes:
- ./front:/app
- /app/node_modules
ports:
- "3000:3000"
back:
build:
context: .
dockerfile: ./dockerfiles/back/Dockerfile
args:
# Set in os environment using `export XDEBUG_CLIENT_HOST=$(ip addr show docker0 | grep -Po 'inet \K[\d.]+')` for linux and WSL2
# or `export XDEBUG_CLIENT_HOST=host.docker.internal` for mac and windows Docker Desktop
XDEBUG_CLIENT_HOST: ${XDEBUG_CLIENT_HOST}
volumes:
- ./back:/app
ports:
- "8000:8000"
environment:
APP_ENV: local
APP_KEY: base64:FvZbGD3zL1gz/aTB0ZVf6nz0JsWRdW5DSL5LwzWacxQ= # Generate with `php -r "echo base64_encode(random_bytes(32));"`
APP_DEBUG: true
APP_URL: http://localhost:8000
LOG_CHANNEL: stack
DB_CONNECTION: pgsql
DB_HOST: db
DB_PORT: 5432
DB_DATABASE: chatbotto
DB_USERNAME: postgres
DB_PASSWORD: secret
QUEUE_CONNECTION: database
expose:
- 9003
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- db
db:
build:
context: .
dockerfile: ./dockerfiles/db/Dockerfile
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: secret
POSTGRES_DB: chatbotto
ports:
- "5432:5432"
volumes:
- ./db-init-scripts:/docker-entrypoint-initdb.d
- db-data:/var/lib/postgresql/data
volumes:
db-data: