-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcompose.yml
More file actions
41 lines (37 loc) · 856 Bytes
/
compose.yml
File metadata and controls
41 lines (37 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: '3.8'
name: efp-api
networks:
default:
driver: bridge
services:
ping:
container_name: api-ping
image: bash:latest
build:
dockerfile_inline: |
FROM bash:latest
WORKDIR /usr/src/app
RUN apk add --no-cache curl && rm -rf /var/cache/apk/*
COPY ./scripts/ping.sh /usr/src/app/ping.sh
command: ./ping.sh
entrypoint: /usr/local/bin/bash
networks:
- default
api:
container_name: api-dev
build:
context: .
dockerfile: Dockerfile
command: >
bun ./src/index.ts
tty: true
stdin_open: true
expose:
- 8787
ports:
- 8787:8787/tcp
networks:
- default
environment:
- IS_DEMO=${IS_DEMO:-false}
- DATABASE_URL=${DATABASE_URL:-postgresql://postgres:postgres@efp-database:5432/efp?sslmode=disable}