Add files via upload
This commit is contained in:
parent
c5e6d1a9c5
commit
3bc810de42
1 changed files with 20 additions and 16 deletions
36
compose.yml
36
compose.yml
|
|
@ -1,26 +1,30 @@
|
||||||
services:
|
services:
|
||||||
db:
|
# db:
|
||||||
image: postgres:16
|
# image: postgres:16
|
||||||
restart: always
|
# restart: always
|
||||||
environment:
|
# environment:
|
||||||
POSTGRES_USER: postgres
|
# POSTGRES_USER: postgres
|
||||||
POSTGRES_PASSWORD: postgres
|
# POSTGRES_PASSWORD: postgres
|
||||||
POSTGRES_DB: phoenix_deploy_test_dev
|
# POSTGRES_DB: phoenix_deploy_test_dev
|
||||||
volumes:
|
# volumes:
|
||||||
- postgres:/var/lib/postgresql/data
|
# - postgres:/var/lib/postgresql/data
|
||||||
- /etc/localtime:/etc/localtime:ro
|
# - /etc/localtime:/etc/localtime:ro
|
||||||
ports:
|
# ports:
|
||||||
- 5432:5432
|
# - 5432:5432
|
||||||
|
|
||||||
app:
|
app:
|
||||||
command: bash #-c "mix deps.get && mix phx.server"
|
command: bash #-c "mix deps.get && mix phx.server"
|
||||||
tty: true
|
tty: true
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
build: https://raw.githubusercontent.com/arndttouby/elixir-phoenix-devcontainer/main/Dockerfile
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
target: development
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
- HISTFILE=/usr/local/hist/.bash_history
|
- HISTFILE=/usr/local/hist/.bash_history
|
||||||
depends_on:
|
# depends_on:
|
||||||
- db
|
# - db
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app
|
- .:/app
|
||||||
- bash_history:/usr/local/hist
|
- bash_history:/usr/local/hist
|
||||||
|
|
@ -30,4 +34,4 @@ services:
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
bash_history:
|
bash_history:
|
||||||
postgres:
|
# postgres:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue