dev: do not gitignore compose file for development environments
This commit is contained in:
parent
1130c1a1e2
commit
293bbe5449
3 changed files with 69 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -29,7 +29,7 @@ coverage
|
|||
!/.config/docker_ci.env
|
||||
!/.config/helm_values_example.yml
|
||||
!/.config/LICENSE
|
||||
docker-compose.yml
|
||||
/docker-compose.yml
|
||||
/custom
|
||||
|
||||
# ESLint
|
||||
|
|
51
dev/container/docker-compose.yml
Normal file
51
dev/container/docker-compose.yml
Normal file
|
@ -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:
|
17
dev/db-container/docker-compose.yml
Normal file
17
dev/db-container/docker-compose.yml
Normal file
|
@ -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"
|
Loading…
Reference in a new issue