mirror of
https://github.com/muerwre/vk-tg-bot.git
synced 2025-04-24 22:46:41 +07:00
#5 added wait-for-it.sh
This commit is contained in:
parent
459d1655da
commit
81586f1cd6
2 changed files with 4 additions and 1 deletions
|
@ -5,6 +5,8 @@ RUN rm -rf /app/*
|
||||||
|
|
||||||
COPY ./package.json .
|
COPY ./package.json .
|
||||||
COPY ./yarn.lock .
|
COPY ./yarn.lock .
|
||||||
|
COPY ./docker/wait-for-it.sh .
|
||||||
|
|
||||||
RUN yarn
|
RUN yarn
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
version: '3.4'
|
version: '3.4'
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
container_name: bot-db
|
container_name: bot-db-${DRONE_BRANCH}
|
||||||
image: postgres:11-alpine
|
image: postgres:11-alpine
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: user
|
POSTGRES_USER: user
|
||||||
|
@ -11,6 +11,7 @@ services:
|
||||||
- bot-db:/var/lib/postgresql/data
|
- bot-db:/var/lib/postgresql/data
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
app:
|
app:
|
||||||
|
container_name: bot-app-${DRONE_BRANCH}
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
PORT: 80
|
PORT: 80
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue