forked from Insolita/php-async-benchmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (41 loc) · 810 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (41 loc) · 810 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
30
31
32
33
34
35
36
37
38
39
40
41
version: '2.4'
services:
data:
image: busybox:latest
volumes:
- ./src:/app
entrypoint: 'tail -f /dev/null'
php-cli:
build:
context: _docker/cli
args:
- USERNAME=appuser
- GROUP=appuser
- GID=1000
- UID=1000
- ALLOW_SUDO=1
restart: on-failure
links:
- db
volumes_from:
- data
environment:
- TZ=Europe/Moscow
tty: true
db:
image: "postgres:12"
restart: on-failure
expose:
- 5432
ports:
- "15488:5432"
environment:
- TZ=Europe/Moscow
- PGTZ=Europe/Moscow
- POSTGRES_DB=pgtest
- POSTGRES_USER=pgdev
- POSTGRES_PASSWORD=pgdev
volumes:
- type: bind
source: ./_docker/db/testdb
target: /var/lib/postgresql/data