This repository was archived by the owner on Feb 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·87 lines (79 loc) · 1.75 KB
/
docker-compose.yml
File metadata and controls
executable file
·87 lines (79 loc) · 1.75 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version: "3.7"
services:
gateway:
build:
context: gateway/docker
dockerfile: development/nginx/Dockerfile
ports:
- "8080:8080"
- "8081:8081"
depends_on:
- frontend
- api
frontend:
build:
context: frontend/docker/development/nginx
depends_on:
- frontend-node
frontend-node:
build:
context: frontend/docker/development/node
volumes:
- ./frontend:/app
command: sh -c "until [ -f .ready ] ; do sleep 1 ; done && npm run serve -- --port 3000"
tty: true
frontend-node-cli:
build:
context: frontend/docker/development/node
volumes:
- ./frontend:/app
- ./api:/php
api:
build:
context: api/docker
dockerfile: development/nginx/Dockerfile
volumes:
- ./api:/app
depends_on:
- api-php-fpm
api-php-fpm:
build:
context: api/docker
dockerfile: development/php-fpm/Dockerfile
environment:
APP_ENV: dev
APP_DEBUG: 1
PHP_IDE_CONFIG: serverName=API
DB_HOST: api-postgres
DB_USER: app
DB_PASSWORD: secret
DB_NAME: app
FRONTEND_URL: http://localhost:8080
volumes:
- ./api:/app
api-php-cli:
build:
context: api/docker
dockerfile: development/php-cli/Dockerfile
environment:
APP_ENV: dev
APP_DEBUG: 1
DB_HOST: api-postgres
DB_USER: app
DB_PASSWORD: secret
DB_NAME: app
FRONTEND_URL: http://localhost:8080
volumes:
- ./api:/app
api-postgres:
image: postgres:12.2-alpine
environment:
POSTGRES_USER: app
POSTGRES_PASSWORD: secret
POSTGRES_DB: app
volumes:
- api-postgres:/var/lib/postgresql/data
ports:
- "54321:5432"
volumes:
api-postgres: