Skip to content

Commit 9c81475

Browse files
schneiemschneiem
authored andcommitted
v0.1
1 parent c4c924c commit 9c81475

File tree

13 files changed

+22
-8
lines changed

13 files changed

+22
-8
lines changed

.idea/ticketNodeDocker.iml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ services:
1212
ports:
1313
- $POSTGRESDB_LOCAL_PORT:$POSTGRESDB_DOCKER_PORT
1414
volumes:
15-
- db:/var/lib/postgres
15+
- db:./tables:/docker-entrypoint-initdb.d
1616
app:
1717
depends_on:
1818
- postgresdb
@@ -31,4 +31,4 @@ services:
3131
tty: true
3232

3333
volumes:
34-
db:
34+
db:

tables/init.sql

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
CREATE IF NOT EXISTS TABLE tutorials(
3+
ID SERIAL PRIMARY KEY,
4+
QR VARCHAR (31) NOT NULL,
5+
STATUS VARCHAR (31) NOT NULL,
6+
MAIL VARCHAR(127),
7+
MOBILE BIGINT,
8+
SCANTIME TIMESTAMP
9+
);
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM node:14
22

3-
WORKDIR /bezkoder-app
3+
WORKDIR /ticketNode
44
COPY package.json .
55
RUN npm install
66
COPY . .
7-
CMD npm start
7+
CMD npm start
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)