forked from tkhamez/neucore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
81 lines (75 loc) · 2 KB
/
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
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
# Creates a development environment
services:
neucore_db:
container_name: neucore_dev_db
#image: mariadb:10.5
image: mariadb:10.11 # LTS
#image: mariadb:11.4 # LTS
#image: mysql:8.0.22
#image: mysql:8.4.0 # LTS
#volumes: ["./.db/10.5:/var/lib/mysql"]
volumes: ["./.db/10.11:/var/lib/mysql"]
#volumes: ["./.db/11.4:/var/lib/mysql"]
#volumes: ["./.db/8.0.22:/var/lib/mysql"]
#volumes: ["./.db/8.4:/var/lib/mysql"]
environment:
MYSQL_ROOT_PASSWORD: neucore
MYSQL_USER: neucore
MYSQL_PASSWORD: neucore
MYSQL_DATABASE: neucore
ports: ["30306:3306"]
networks: [neucore]
neucore_java:
container_name: neucore_dev_java
image: eclipse-temurin:17-jre-alpine
volumes: [".:/app"]
user: ${UID}
networks: [neucore]
neucore_node:
container_name: neucore_dev_node
build:
context: setup
dockerfile: Dockerfile-node
tty: true
stop_grace_period: 2s
volumes: [".:/app"]
environment:
BACKEND_HOST: http://localhost:8080
ports: ["3000:8080"]
user: node
working_dir: /app/frontend
dns: [1.1.1.1]
networks: [neucore]
neucore_php:
container_name: neucore_dev_php
build:
context: setup
#dockerfile: Dockerfile-php81-fpm
#dockerfile: Dockerfile-php82-fpm
dockerfile: Dockerfile-php83-fpm
#dockerfile: Dockerfile-php84-fpm
depends_on: [neucore_db]
volumes: [
".:/app",
#"/path/to/plugin:/plugins/plugin-name",
]
environment:
PHP_IDE_CONFIG: serverName=docker # for PhpStorm
user: ${UID}
working_dir: /app/backend
dns: [1.1.1.1]
networks: [neucore]
neucore_http:
container_name: neucore_dev_http
image: nginx:1
depends_on: [neucore_php]
volumes: [
".:/app",
"./setup/docker-nginx.conf:/etc/nginx/conf.d/default.conf",
#"/path/to/plugin/frontend:/app/web/plugin/plugin-name",
]
ports: ["8080:80"]
networks: [neucore]
networks:
neucore:
name: neucore_dev