-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
executable file
路78 lines (71 loc) 路 1.76 KB
/
Copy pathcompose.yml
File metadata and controls
executable file
路78 lines (71 loc) 路 1.76 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
networks:
default:
name: dev-bridge
driver: local
external: true
x-env: &x-env
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_HOST: ${MYSQL_HOST}
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
x-web: &x-web
<<: *x-env
build: .
restart: always
tty: true
volumes_from:
- php
services:
php:
container_name: heiakim-frontend-php
build: ./docker/dev/php
restart: always
tty: true
volumes:
- .:/data
web:
<<: *x-web
container_name: heiakim-frontend-web
ports:
- ${WEB_PORT}:80
entrypoint: ["/wait-for-it.sh", "php:9000", "--", "/data/docker/entrypoint.sh"]
command: ["nginx"]
depends_on:
- php
api:
<<: *x-web
container_name: heiakim-frontend-api
ports:
- ${API_PORT}:80
command: ["api"]
depends_on:
- php
jobs:
<<: *x-web
container_name: heiakim-frontend-jobs
command: ["jobs"]
depends_on:
- php
# ? Development specific services. These will not appear in production.
node:
image: node:26.2-trixie-slim
working_dir: /data
restart: always
command: npm run dev
environment:
NODE_ENV: "development"
WATCHPACK_POLLING: "true"
NODE_BUNDLE_ENTRY: ${NODE_BUNDLE_ENTRY}
NODE_BUNDLE_OUTPUT_PATH: ${NODE_BUNDLE_OUTPUT_PATH}
NODE_BUNDLE_OUTPUT_FILENAME: ${NODE_BUNDLE_OUTPUT_FILENAME}
NODE_BUNDLE_OUTPUT_PUBLIC_PATH: ${NODE_BUNDLE_OUTPUT_PUBLIC_PATH}
NODE_DEVSERVER_HOST: ${NODE_DEVSERVER_HOST}
NODE_DEVSERVER_PORT: ${NODE_DEVSERVER_PORT}
NODE_DEVSERVER_STATIC: ${NODE_DEVSERVER_STATIC}
NODE_DEVSERVER_PROXY_ROOT: ${NODE_DEVSERVER_PROXY_ROOT}
volumes_from:
- php
depends_on:
- web
ports:
- "${NODE_DEVSERVER_PORT}:${NODE_DEVSERVER_PORT}"