forked from sleep1223/fast-soy-admin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
50 lines (46 loc) · 1.03 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
version: '3.8'
services:
web:
image: gplane/pnpm:9.1.2-node18-alpine
working_dir: /opt/fast-soy-admin/web
volumes:
- ./web:/opt/fast-soy-admin/web
command: >
sh -c "
cd /opt/fast-soy-admin/web &&
pnpm install --frozen-lockfile &&
pnpm run build
"
nginx:
image: nginx:alpine
ports:
- "1880:80"
environment:
- LANG=zh_CN.UTF-8
volumes:
- ./web/dist:/var/www/html/fast-soy-admin
- ./deploy/web.conf:/etc/nginx/conf.d/default.conf
depends_on:
- web
- app
restart: always
networks:
- internal
app:
image: seven45/pdm-ci:3.11-alpine
working_dir: /opt/fast-soy-admin
command: >
sh -c "
pdm config pypi.url https://pypi.tuna.tsinghua.edu.cn/simple/ &&
pdm install --frozen-lockfile --no-editable &&
pdm run run.py
"
environment:
- LANG=zh_CN.UTF-8
volumes:
- .:/opt/fast-soy-admin
networks:
- internal
networks:
internal:
driver: bridge