-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
49 lines (44 loc) · 939 Bytes
/
docker-compose.yaml
File metadata and controls
49 lines (44 loc) · 939 Bytes
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
networks:
geminar-network:
external: true
name: geminar-network
services:
geminar-console:
build: .
image: hqit/geminar-console:latest
ports:
- "8800:8000"
env_file:
- .env
volumes:
- console-medias:/app/medias
- ./db.sqlite3:/app/db.sqlite3 # 共享数据库
networks:
- geminar-network
restart: unless-stopped
frontend:
build: ./frontend
image: hqit/geminar-frontend:latest
volumes:
- frontend-dist:/app/build
restart: no
networks:
- geminar-network
nginx:
image: dockerpull.org/nginx:latest
ports:
- "8080:80"
depends_on:
- frontend
- geminar-console
volumes:
- frontend-dist:/app/dist
- ./nginx.conf:/etc/nginx/conf.d/default.conf
restart: unless-stopped
networks:
- geminar-network
volumes:
console-medias:
driver: local
frontend-dist:
driver: local