Change context url in compose.yml Signed-off-by: arndttouby <arndt@touby.eu> Reviewed-on: #1 Co-authored-by: arndttouby <arndt@touby.eu> Co-committed-by: arndttouby <arndt@touby.eu>
37 lines
803 B
YAML
37 lines
803 B
YAML
services:
|
|
db:
|
|
image: postgres:17
|
|
restart: always
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: dbname_dev
|
|
volumes:
|
|
- postgres:/var/lib/postgresql/data
|
|
- /etc/localtime:/etc/localtime:ro
|
|
ports:
|
|
- 5432:5432
|
|
|
|
app:
|
|
command: bash #-c "mix deps.get && mix phx.server"
|
|
tty: true
|
|
stdin_open: true
|
|
build:
|
|
context: https://git.touby.eu/arndttouby/elixir-phoenix-devcontainer.git
|
|
dockerfile: Dockerfile
|
|
target: development
|
|
|
|
environment:
|
|
- HISTFILE=/usr/local/hist/.bash_history
|
|
depends_on:
|
|
- db
|
|
volumes:
|
|
- .:/app
|
|
- bash_history:/usr/local/hist
|
|
- /etc/localtime:/etc/localtime:ro
|
|
ports:
|
|
- 4000:4000
|
|
|
|
volumes:
|
|
bash_history:
|
|
postgres:
|