-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
73 lines (69 loc) · 1.74 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
70
71
72
73
version: "3.7"
services:
backend:
build: ./backend
working_dir: /backend
container_name: backend
command: python3 dev-entry.py
volumes:
- ./backend/:/backend
depends_on:
- unknown_mongo
env_file:
- .env
frontend:
build: ./frontend
container_name: frontend
working_dir: /frontend
command: pnpm rscript docker-dev
volumes:
- ./frontend/.svelte-kit/:/frontend/.svelte-kit/
- ./frontend/patches/:/frontend/patches/
- ./frontend/scripts/:/frontend/scripts/
- ./frontend/src/:/frontend/src/
- ./frontend/static/:/frontend/static/
- ./frontend/package.json:/frontend/package.json
- ./frontend/pnpm-lock.yaml:/frontend/pnpm-lock.yaml
- ./frontend/postcss.config.js:/frontend/postcss.config.js
- ./frontend/svelte.config.js:/frontend/svelte.config.js
- ./frontend/tailwind.config.ts:/frontend/tailwind.config.ts
- ./frontend/vite.config.ts:/frontend/vite.config.ts
env_file:
- .env
environment:
- PUBLIC_IS_DOCKER=true
unknown_mongo:
image: mongo
container_name: unknown_mongo
restart: unless-stopped
env_file:
- .env
volumes:
- "./data:/data/db"
mongo_seed:
build: ./backend/mongo
depends_on:
- unknown_mongo
environment:
- db_host=unknown_mongo
client:
image: nginx
ports:
- 2080:80
volumes:
- type: bind
source: ./dev-proxy/nginx.conf
target: /etc/nginx/conf.d/default.conf
read_only: true
depends_on:
- frontend
- backend
mongo_express:
image: mongo-express
env_file:
- .env
depends_on:
- unknown_mongo
restart: unless-stopped
ports:
- "8888:8081"