Skip to content

Commit 1a30012

Browse files
committed
Start setting up compose for searchcode.com
1 parent f17fff3 commit 1a30012

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed

.dockerignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
target
2+
logs
3+
index
4+
assets
5+
repo
6+
7+
# Intellij project files
8+
*.iml
9+
*.ipr
10+
*.iws
11+
.idea/*
12+
13+
# Mac system files
14+
.DS_Store

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM adoptopenjdk/openjdk11:alpine
2+
3+
RUN apk --update add maven
4+
5+
WORKDIR /opt/app/
6+
7+
COPY ./pom.xml /opt/app
8+
RUN mvn -f ./pom.xml -B dependency:resolve-plugins dependency:resolve clean package
9+
10+
COPY ./ /opt/app/
11+
12+
RUN mvn -Dmaven.test.skip=true package
13+
CMD java -jar ./target/searchcode-1.3.15.jar

docker-compose.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
version: '3'
2+
services:
3+
searchcode:
4+
build:
5+
context: .
6+
dockerfile: ./Dockerfile
7+
ports:
8+
- "8080:8080"
9+
depends_on:
10+
- manticore
11+
- mysql
12+
manticore:
13+
image: "manticoresearch/manticore:2.8.2"
14+
ports:
15+
- "9306:9306"
16+
mysql:
17+
image: "mysql:5.7.26"
18+
ports:
19+
- "3306:3306"
20+
command: --default-authentication-plugin=mysql_native_password
21+
restart: always
22+
environment:
23+
MYSQL_ROOT_PASSWORD: example

0 commit comments

Comments
 (0)