Reorganize docker configuration
This commit is contained in:
@@ -4,4 +4,4 @@ MAINTAINER restitux <restitux@ohea.xyz>
|
||||
RUN apt-get update && apt-get install -y \
|
||||
ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
ENTRYPOINT ["/build/server/docker/build-and-run.sh"]
|
||||
ENTRYPOINT ["/build/server/docker/cursorius/build-and-run.sh"]
|
||||
@@ -2,15 +2,15 @@ version: "3.3"
|
||||
services:
|
||||
cursorius-server:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: docker/Dockerfile.dev
|
||||
context: ".."
|
||||
dockerfile: "docker/cursorius/Dockerfile.dev"
|
||||
ports:
|
||||
- "0.0.0.0:45420:45420"
|
||||
networks:
|
||||
- cursorius
|
||||
volumes:
|
||||
- "..:/build/server"
|
||||
- "../server.toml:/root/.config/cursorius/server.toml"
|
||||
- "./server.toml:/root/.config/cursorius/server.toml"
|
||||
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||
- "../_working/go:/go"
|
||||
- "../_working/jobs:/cursorius/jobs"
|
||||
@@ -20,11 +20,14 @@ services:
|
||||
- POSTGRES_USER=cursorius
|
||||
- POSTGRES_PASSWORD=cursorius
|
||||
- POSTGRES_DB=cursorius
|
||||
volumes:
|
||||
- "../_working/postgres:/var/lib/postgresql/data"
|
||||
networks:
|
||||
- cursorius
|
||||
graphiql:
|
||||
build:
|
||||
dockerfile: Dockerfile.graphiql
|
||||
context: "graphiql"
|
||||
dockerfile: "Dockerfile.graphiql"
|
||||
ports:
|
||||
- "0.0.0.0:45421:80"
|
||||
networks:
|
||||
|
||||
+1
-1
@@ -2,4 +2,4 @@
|
||||
|
||||
set -e
|
||||
|
||||
go run docker/run.go $@
|
||||
go run docker/run.go "$@"
|
||||
|
||||
Reference in New Issue
Block a user