-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
48 lines (44 loc) · 1.04 KB
/
docker-compose.yaml
File metadata and controls
48 lines (44 loc) · 1.04 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
services:
generate-ssh-keys:
image: php-apache-sftp
build:
context: .
dockerfile: Dockerfile
entrypoint: /prepare-test.sh
volumes:
- ./test/prepare-test.sh:/prepare-test.sh
- ssh:/var/www/.ssh
php-apache-sftp:
image: php-apache-sftp
depends_on:
generate-ssh-keys:
condition: service_completed_successfully
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:80"
- "36622:36622"
volumes:
- ssh:/var/www/.ssh
healthcheck:
test: ["CMD", "echo", ">", "/dev/tcp/127.0.0.1/36622", "&&", "echo", ">", "/dev/tcp/127.0.0.1/80"]
interval: 5s
timeout: 3s
retries: 20
sftp-test:
image: php-apache-sftp
build:
context: .
dockerfile: Dockerfile
depends_on:
php-apache-sftp:
condition: service_healthy
entrypoint: /test.sh php-apache-sftp
working_dir: /
volumes:
- ./test/index.php:/index.php
- ./test/test.sh:/test.sh
- ssh:/var/www/.ssh
volumes:
ssh: