Some checks failed
Build and Publish Docker Container / build (push) Failing after 22s
Really just to make a push
29 lines
620 B
YAML
29 lines
620 B
YAML
services:
|
|
server:
|
|
build:
|
|
context: .
|
|
target: final
|
|
ports:
|
|
- 3000:3000
|
|
environment:
|
|
- DATABASE_URL=postgres://postgres:64ED6F27-D08D-40B4-BC80-034C7C207986@db/postgres
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
db:
|
|
image: postgres
|
|
restart: always
|
|
user: postgres
|
|
volumes:
|
|
- db-data:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_DB=example
|
|
- POSTGRES_PASSWORD=64ED6F27-D08D-40B4-BC80-034C7C207986
|
|
healthcheck:
|
|
test: [ "CMD", "pg_isready" ]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
volumes:
|
|
db-data:
|