chore: improve compose for git worktree #142
2
Makefile
2
Makefile
@ -1,6 +1,6 @@
|
|||||||
.DEFAULT_GOAL := help
|
.DEFAULT_GOAL := help
|
||||||
|
|
||||||
COMPOSE = docker compose -f docker-compose.yml -f docker-compose.override.yml
|
COMPOSE = docker compose
|
||||||
|
|
||||||
.PHONY: system_setup
|
.PHONY: system_setup
|
||||||
system_setup: ## setup system deps
|
system_setup: ## setup system deps
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
name: ${EX_TRAINER_PROJECT_NAME:-ex_trainer}
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: 'postgres:17.4-alpine'
|
image: 'postgres:17.4-alpine'
|
||||||
@ -12,6 +14,7 @@ services:
|
|||||||
- './priv/docker/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql'
|
- './priv/docker/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql'
|
||||||
- 'db_data:/var/lib/postgresql/data'
|
- 'db_data:/var/lib/postgresql/data'
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
app:
|
app:
|
||||||
image: 'joaodubas/ex_trainer:${EX_TRAINER_TAG:-dev}'
|
image: 'joaodubas/ex_trainer:${EX_TRAINER_TAG:-dev}'
|
||||||
build:
|
build:
|
||||||
@ -26,23 +29,17 @@ services:
|
|||||||
init: true
|
init: true
|
||||||
develop:
|
develop:
|
||||||
watch:
|
watch:
|
||||||
|
- path: ./mix.lock
|
||||||
|
action: rebuild
|
||||||
- path: ./
|
- path: ./
|
||||||
ignore:
|
ignore:
|
||||||
- ./build/
|
- ./build/
|
||||||
- ./deps/
|
- ./deps/
|
||||||
target: /opt/app
|
- ./.elixir_ls/
|
||||||
action: sync
|
- ./cover/
|
||||||
- path: ./config/
|
- ./report/
|
||||||
target: /opt/app
|
target: /opt/app
|
||||||
action: sync+restart
|
action: sync+restart
|
||||||
- path: ./lib/wabanex/application.ex
|
|
||||||
target: /opt/app
|
|
||||||
action: sync+restart
|
|
||||||
- path: ./mix.exs
|
|
||||||
target: /opt/app
|
|
||||||
action: sync+restart
|
|
||||||
- path: ./mix.lock
|
|
||||||
action: rebuild
|
|
||||||
environment:
|
environment:
|
||||||
DNS_CLUSTER_QUERY: *app_host
|
DNS_CLUSTER_QUERY: *app_host
|
||||||
POSTGRES_HOST: *db_host
|
POSTGRES_HOST: *db_host
|
||||||
@ -54,6 +51,7 @@ services:
|
|||||||
scale: 3
|
scale: 3
|
||||||
entrypoint: ./priv/docker/service/docker-entrypoint.sh
|
entrypoint: ./priv/docker/service/docker-entrypoint.sh
|
||||||
command: local-cookie
|
command: local-cookie
|
||||||
|
|
||||||
test:
|
test:
|
||||||
image: 'joaodubas/ex_trainer:test'
|
image: 'joaodubas/ex_trainer:test'
|
||||||
build:
|
build:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user