Adds default compose file
This commit is contained in:
parent
b310bc64bc
commit
c693b8fa97
1 changed files with 33 additions and 0 deletions
33
compose.yml
Normal file
33
compose.yml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
services:
|
||||
db:
|
||||
image: postgres:16
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_DB: phoenix_deploy_test_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: https://raw.githubusercontent.com/arndttouby/elixir-phoenix-devcontainer/main/Dockerfile
|
||||
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:
|
||||
Loading…
Add table
Reference in a new issue