-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
49 lines (45 loc) · 1.3 KB
/
docker-compose.dev.yml
File metadata and controls
49 lines (45 loc) · 1.3 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
48
49
version: "3.7"
services:
app:
container_name: "${APP_ID}-app"
build: .
ports:
- "${APP_PORT}:80"
volumes:
- ./storage:/app/storage:cached
- ./app:/app/app:cached
- ./bootstrap:/app/bootstrap:cached
- ./config:/app/config:cached
- ./database:/app/database:cached
- ./public:/app/public:cached
- ./resources:/app/resources:cached
- ./routes:/app/routes:cached
- ./tests:/app/tests:cached
- ./vendor:/app/vendor:cached
- ./node_modules:/app/node_modules:cached
worker:
container_name: "${APP_ID}-worker"
build: .
volumes:
- ./storage:/app/storage:cached
- ./app:/app/app:cached
- ./bootstrap:/app/bootstrap:cached
- ./config:/app/config:cached
- ./database:/app/database:cached
- ./resources/lang:/app/resources/lang:cached
- ./routes:/app/routes:cached
- ./vendor:/app/vendor:cached
postgres:
container_name: "${APP_ID}-postgres"
command: "-p ${DB_PORT}"
ports:
- "${DB_PORT}:${DB_PORT}"
healthcheck:
test: "pg_isready -p ${DB_PORT} -U ${DB_USERNAME}"
redis:
container_name: "${APP_ID}-redis"
command: "--port ${REDIS_PORT}"
ports:
- "${REDIS_PORT}:${REDIS_PORT}"
healthcheck:
test: "redis-cli -p ${REDIS_PORT} ping"