-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
42 lines (39 loc) · 1.02 KB
/
docker-compose.yaml
File metadata and controls
42 lines (39 loc) · 1.02 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
version: '3.5'
services:
users:
build: "./docker/app"
volumes:
- ./users:/app
env_file:
- ./docker/app/.env
environment:
- DATABASE_DSN=pgsql:host=postgresql;port=5432;dbname=test;user=test;password=test
- USERSERVICE_HOST=users:9001
- BLOGSERVICE_HOST=blog:9001
ports:
- "8081:8080"
command: >
bash -c "php app.php migrate
&& php app.php db:seed
&& ./rr serve"
depends_on:
- postgresql
blog:
build: "./docker/app"
volumes:
- ./blog:/app
env_file:
- ./docker/app/.env
ports:
- "8082:8080"
command: >
bash -c "php app.php migrate
&& php app.php db:seed
&& ./rr serve"
depends_on:
- postgresql
postgresql:
image: postgres
environment:
POSTGRES_PASSWORD: test
POSTGRES_USER: test