-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
53 lines (49 loc) · 1023 Bytes
/
docker-compose.yaml
File metadata and controls
53 lines (49 loc) · 1023 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
services:
nginx:
image: nginx:latest
container_name: nginx
ports:
- "80:80"
volumes:
- ./services/nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./app:/app
depends_on:
- node
- php
networks:
- app-network
node:
image: node:24.0.1
ports:
- "88:80"
volumes:
- ./front:/app
working_dir: /app
networks:
- app-network
command: sh -c "npm run start"
php:
build: ./services/php
container_name: php
volumes:
- ./back:/app
working_dir: /app
networks:
- app-network
command: sh -c "php artisan migrate & php artisan queue:work & php-fpm"
postgres:
image: postgres:17.4
container_name: postgres
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_DB: db
ports:
- "5432:5432"
volumes:
- ./services/postgres/data:/var/lib/postgresql/data
networks:
- app-network
networks:
app-network:
driver: bridge