This repository was archived by the owner on Aug 17, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
126 lines (116 loc) · 2.99 KB
/
docker-compose.dev.yml
File metadata and controls
126 lines (116 loc) · 2.99 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
version: "3.9"
# https://docs.docker.com/compose/compose-file/compose-file-v3/#extension-fields
x-lit-wc-dist-volume:
&lit-wc-dist-volume
type: bind
source: ./packages/lit-wc/dist
target: /app/packages/lit-wc/dist
x-lit-wc-type-volume:
&lit-wc-types-volume
type: bind
source: ./packages/lit-wc/types
target: /app/packages/lit-wc/types
x-svelte-wc-dist-volume:
&svelte-wc-dist-volume
type: bind
source: ./packages/svelte-wc/dist
target: /app/packages/svelte-wc/dist
x-svelte-wc-type-volume:
&svelte-wc-types-volume
type: bind
source: ./packages/svelte-wc/types
target: /app/packages/svelte-wc/types
services:
home:
build:
context: .
dockerfile: ./apps/home/Dockerfile.dev
command: yarn dev --filter=home
stdin_open: true
tty: true
ports:
- "3000:3000"
environment:
- PORT=3000
volumes:
- *lit-wc-dist-volume
- *lit-wc-types-volume
- *svelte-wc-dist-volume
- *svelte-wc-types-volume
- ./apps/home/src:/app/apps/home/src
- ./apps/home/public:/app/apps/home/public
about:
build:
context: .
dockerfile: ./apps/about/Dockerfile.dev
command: yarn dev --filter=about
stdin_open: true
tty: true
ports:
- "3001:3001"
environment:
- PORT=3001
volumes:
- *lit-wc-dist-volume
- *lit-wc-types-volume
- *svelte-wc-dist-volume
- *svelte-wc-types-volume
- ./apps/about/src:/app/apps/about/src
- ./apps/about/public:/app/apps/about/public
chat:
build:
context: .
dockerfile: ./apps/chat/Dockerfile.dev
command: yarn dev --filter=chat
stdin_open: true
tty: true
ports:
- "3002:3002"
environment:
- PORT=3002
- VITE_SOCKET_URI=https://chat.multi-app.local
volumes:
- ./apps/chat/src:/app/apps/chat/src
- ./apps/chat/public:/app/apps/chat/public
chat-server:
build:
context: .
dockerfile: ./apps/chat-server/Dockerfile.dev
command: yarn dev --filter=chat-server
stdin_open: true
tty: true
ports:
- "4002:4002"
environment:
- PORT=4002
volumes:
- ./apps/chat-server/src:/app/apps/chat-server/src
- ./apps/chat-server/public:/app/apps/chat-server/public
nginx:
build:
context: .
dockerfile: ./nginx/Dockerfile.dev
depends_on:
- strapi
volumes:
- ./nginx/nginx.dev.conf:/etc/nginx/conf.d/nginx.conf
strapi:
build:
context: .
dockerfile: apps/strapi/Dockerfile.dev
container_name: multi-app-strapi
ports:
- '1337:1337'
restart: on-failure
env_file:
- ./.envs/strapi/.env.development
volumes:
- ./apps/strapi/.tmp:/app/.tmp
- ./apps/strapi/config:/app/config
- ./apps/strapi/database:/app/config
- ./apps/strapi/public/uploads:/app/public/uploads
- ./apps/strapi/src:/app/src
- ./apps/strapi/.env:/app/.env
- ./apps/strapi/tsconfig.json:/app/tsconfig.json
networks:
- multi-app-network