generated from wayofdev/php-package-tpl
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
43 lines (38 loc) · 885 Bytes
/
docker-compose.yaml
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
---
services:
app:
image: wayofdev/php-dev:8.3-cli-alpine-latest
container_name: ${COMPOSE_PROJECT_NAME}-app
restart: on-failure
networks:
- default
volumes:
- ./:/app:rw
- ~/.composer:/.composer
env_file:
- .env
environment:
PHIVE_HOME: /app/.phive
pgsql:
image: wayofdev/postgres:15-alpine-latest
container_name: ${COMPOSE_PROJECT_NAME}-pgsql
restart: on-failure
networks:
- default
ports:
- '${DB_PGSQL_FORWARD_PORT:-15432}:5432'
env_file:
- .env
environment:
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_DATABASE}
volumes:
- pgsql-data:/var/lib/postgresql/data:cached
volumes:
pgsql-data:
name: ${COMPOSE_PROJECT_NAME}-pgsql-data
networks:
default:
name: project.${COMPOSE_PROJECT_NAME}
...