-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
50 lines (48 loc) · 1.6 KB
/
docker-compose.yaml
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
# Simple docker-compose stack for the development of the application
---
version: "3.9"
services:
node:
build:
args:
NODE_VERSION: "20"
context: "."
target: "wo_node"
command:
- "yarn"
- "run"
- "webpack"
- "--mode=development"
- "--watch"
user: "node"
volumes:
- ".:/application"
working_dir: "/application"
php:
build:
args:
PHP_VERSION: "8.2"
context: "."
target: "wo_php"
working_dir: "/application"
volumes:
- ".:/application"
web-apache:
depends_on:
- "php"
image: "httpd:alpine"
ports:
- "8081:80"
volumes:
- ".:/application:ro"
- "./docker/apache/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro"
web-nginx:
depends_on:
- "php"
image: "nginx:alpine"
ports:
- "8080:80"
volumes:
- ".:/application:ro"
- "./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro"
...