-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-with-rds.yml
44 lines (43 loc) · 1.13 KB
/
docker-compose-with-rds.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
# 构建docker-compose项目
# docker compose --log-level INFO up -- build
# docker compose --log-level INFO up -d --build
version: '3'
services:
# jvue-nginx:
# image: jvue/nginx:1.15.9
# container_name: jvue-nginx
# build:
# context: ./
# dockerfile: ./jvue-nginx/Dockerfile
# ports:
# - "80:80"
# volumes:
# - ./jvue-nginx/nginx.conf:/etc/nginx/conf.d/default.conf
# - ./data/nginx/log:/var/log/nginx
# restart: "no"
jvue-server:
image: jvue/server:4.0.1
container_name: jvue-server
build:
context: ./
dockerfile: ./jvue-server/Dockerfile
ports:
- "8008:8008"
working_dir: /app
command: mvn clean spring-boot:run -Dspring-boot.run.profiles=rds -DskipTests
volumes:
- ./jvue-server:/app
- ./data/maven/.m2:/root/.m2
- ./data/server/logs:/logs
restart: "no"
# jvue-front:
# container_name: jvue-front
# image: jvue/front:4.0.1
# build:
# context: .
# dockerfile: ./jvue-front/Dockerfile
# ports:
# - "3000:3000"
# environment:
# - npm_config_unsafe_perm=true
# restart: "no"