-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (36 loc) · 869 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (36 loc) · 869 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
version: '2'
services:
mapi-user:
build:
dockerfile: ./docker/Dockerfile
context: ./api-user
container_name: c-mapi-user
ports:
- "8080:80"
links:
- redis
- postgres
depends_on:
- postgres
- redis
restart: always
command: ["/usr/bin/wait-for-it.sh", "mapi-postgres:5432", "--", "/var/www/html/startup.sh"]
mapi-tester:
build:
dockerfile: ./docker/Dockerfile
context: ./client
container_name: c-mapi-tester
links:
- mapi-user
depends_on:
- mapi-user
command: ["/usr/bin/wait-for-it.sh", "mapi-user:80", "-t", "60", "--", "php", "public/app.php"]
redis:
image: redis
container_name: c-redis
restart: always
postgres:
image: postgres:10
restart: always
container_name: c-postgres
env_file: ./api-user/docker/postgresql.env