-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (59 loc) · 1.38 KB
/
docker-compose.yml
File metadata and controls
59 lines (59 loc) · 1.38 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
services:
gateway:
build:
context: gateway/docker/nginx
ports:
- "8080:8080"
- "8081:8081"
depends_on:
- frontend-nginx
- api-nginx
frontend-nginx:
build:
context: ./frontend/docker
dockerfile: Dockerfile
volumes:
- ./frontend:/var/www/frontend
- ./frontend/docker/nginx/logs:/var/log/nginx
depends_on:
- php
# ports: // When the gateway is not available.
# - "8080:80"
api-nginx:
build:
context: ./api/docker/nginx
dockerfile: Dockerfile
volumes:
- ./api:/var/www/api
- ./api/docker/nginx/logs:/var/log/nginx
# ports:
# - "8081:80" // When the gateway is not available.
depends_on:
- php
frontend:
image: node:22-alpine
volumes:
- ./frontend:/var/www/frontend
working_dir: /var/www/frontend
tty: true
php:
build:
context: ./api/docker
dockerfile: Dockerfile
volumes:
- ./api:/var/www/api
- ./api/docker/php/local.ini:/usr/local/etc/php/conf.d/local.ini
working_dir: /var/www/api
tty: true
ports:
- "9000:9000"
pgsql:
image: postgres:17.4-alpine
environment:
POSTGRES_DB: 'docker_spa_db'
POSTGRES_USER: "root"
POSTGRES_PASSWORD: "secret"
volumes:
- ./api/docker/postgres/data:/var/lib/postgresql/data
ports:
- "5432:5432"