-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose.yml
69 lines (63 loc) · 1.72 KB
/
docker-compose.yml
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
version: '3.8'
networks:
moonshine-demo-network:
name: 'moonshine-demo-network'
services:
nginx-moonshine-demo:
build: ./docker/Nginx
container_name: nginx-moonshine-demo
ports:
- ${LOCAL_WEB_PORT}:${APP_WEB_PORT}
volumes:
- ${LOCAL_PATH_HOST}:${APP_PATH}
- ./docker/volumes/Nginx/core:/etc/nginx/
- ./docker/volumes/Nginx/logs:/var/log/nginx/
depends_on:
- php-moonshine-demo
networks:
- moonshine-demo-network
php-moonshine-demo:
build:
context: ./docker/PHP8
args:
docker_user: ${DOCKER_USER}
container_name: php-moonshine-demo
volumes:
- ${LOCAL_PATH_HOST}:${APP_PATH}
depends_on:
- db-moonshine-demo
networks:
- moonshine-demo-network
db-moonshine-demo:
image: mariadb:11.0.2
container_name: db-moonshine-demo
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASS}
volumes:
- ./docker/volumes/MySQL/lib:/var/lib/mysql
- ./docker/volumes/MySQL/dump:/docker-entrypoint-initdb.d
ports:
- ${LOCAL_MYSQL_PORT}:${APP_MYSQL_PORT}
networks:
- moonshine-demo-network
redis-moonshine-demo:
image: redis:7.2-rc-alpine3.18
command: ["redis-server", "--appendonly", "yes"]
container_name: redis-moonshine-demo
ports:
- ${LOCAL_REDIS_PORT}:${APP_REDIS_PORT}
networks:
- moonshine-demo-network
npm-moonshine-demo:
build: ./docker/Node
container_name: npm-moonshine-demo
volumes:
- ${LOCAL_PATH_HOST}:${APP_PATH}:cached
- ${LOCAL_PATH_HOST}.env:${APP_PATH}/.env
working_dir: ${APP_PATH}
profiles: ["npm"]
entrypoint: ['npm']
ports:
- ${VITE_PORT}:${VITE_PORT}
networks:
- moonshine-demo-network