-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
29 lines (29 loc) · 942 Bytes
/
docker-compose.yaml
File metadata and controls
29 lines (29 loc) · 942 Bytes
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
services:
php-cli:
image: ${PHP_CLI_IMAGE:-ghcr.io/mesilov/bitrix24-php-lib:php-cli}
build:
context: ./docker/php-cli
depends_on:
- database
volumes:
- .:/var/www/html
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
PHP_IDE_CONFIG: "serverName=docker-cli"
working_dir: /var/www/html
database:
image: postgres:${POSTGRES_VERSION:-16}-alpine
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB:-b24phpLibTest}
# You should definitely change the password in production
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-b24phpLibTest}
POSTGRES_USER: ${POSTGRES_USER:-b24phpLibTest}
PGDATA: "/var/lib/postgresql/data/pgdata"
container_name: bitrix24-php-lib-test-database
ports:
- '5438:5432'
volumes:
- ./docker/init_database/:/docker-entrypoint-initdb.d
- ./docker/db:/var/lib/postgresql/data