diff --git a/.gitignore b/.gitignore index 6ed87e24a6..93870c7ffc 100644 --- a/.gitignore +++ b/.gitignore @@ -29,7 +29,7 @@ coverage !/.config/docker_ci.env !/.config/helm_values_example.yml !/.config/LICENSE -docker-compose.yml +/docker-compose.yml /custom # ESLint diff --git a/dev/container/docker-compose.yml b/dev/container/docker-compose.yml new file mode 100644 index 0000000000..965666c544 --- /dev/null +++ b/dev/container/docker-compose.yml @@ -0,0 +1,51 @@ +version: "3" + +services: + web: + image: docker.io/node:18.17.0-bookworm + container_name: firefish_web + restart: unless-stopped + depends_on: + - db + - redis + ports: + - "3030:3030" + networks: + - firefishnet + environment: + NODE_ENV: production + PGPASSWORD: password + URL: http://localhost:3030 + volumes: + - ./firefish:/firefish:rw + - ./docker-entrypoint.sh:/docker-entrypoint.sh:ro + entrypoint: /docker-entrypoint.sh + + redis: + restart: unless-stopped + image: docker.io/redis:7.0-alpine + container_name: firefish_redis + networks: + - firefishnet + ports: + - "26379:6379" + volumes: + - ./redis:/data + + db: + restart: unless-stopped + image: docker.io/groonga/pgroonga:3.1.8-alpine-12 + container_name: firefish_db + networks: + - firefishnet + environment: + - "POSTGRES_PASSWORD=password" + - "POSTGRES_USER=firefish" + - "POSTGRES_DB=firefish_db" + ports: + - "25432:5432" + volumes: + - ./db:/var/lib/postgresql/data + +networks: + firefishnet: diff --git a/dev/db-container/docker-compose.yml b/dev/db-container/docker-compose.yml new file mode 100644 index 0000000000..0c9a6fd617 --- /dev/null +++ b/dev/db-container/docker-compose.yml @@ -0,0 +1,17 @@ +version: "3" + +services: + redis: + image: docker.io/redis:7-alpine + ports: + - "26379:6379" + db: + image: docker.io/groonga/pgroonga:3.1.8-alpine-12 + environment: + - "POSTGRES_PASSWORD=password" + - "POSTGRES_USER=firefish" + - "POSTGRES_DB=firefish_db" + ports: + - "25432:5432" + volumes: + - "./install.sql:/docker-entrypoint-initdb.d/install.sql:ro"