Skip to content
This repository was archived by the owner on Apr 12, 2022. It is now read-only.

Commit 280fc1e

Browse files
committed
add docker compose files
1 parent 4acb00e commit 280fc1e

8 files changed

+82
-61
lines changed
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
FROM node:12-alpine
1+
FROM node:12
22

33
WORKDIR /usr/src/app
44

55
COPY . .
66
COPY package*.json .
77

8-
RUN yarn \
9-
&& yarn build
8+
RUN yarn
9+
RUN yarn build
10+
11+
EXPOSE 7775

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
# animeloop-server-ts
22
Animeloop server based on Typescript
3+
4+
5+
## Docker Deploy
6+
7+
```
8+
docker-compose -f docker-compose-<module_name>.yml up --build
9+
```

docker-compose-api.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: '3'
2+
3+
services:
4+
animeloop-api:
5+
container_name: animeloop-api
6+
build:
7+
context: .
8+
dockerfile: ./Dockerfile-node
9+
ports:
10+
- 7775:7775
11+
networks:
12+
- postgres_default
13+
- redis_default
14+
command: yarn start:api
15+
networks:
16+
postgres_default:
17+
external: true
18+
redis_default:
19+
external: true

docker-compose-automator.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: '3'
2+
3+
services:
4+
animeloop-automator:
5+
container_name: animeloop-automator
6+
build:
7+
context: .
8+
dockerfile: ./Dockerfile-automator
9+
networks:
10+
- postgres_default
11+
- redis_default
12+
command: yarn start:automator
13+
networks:
14+
postgres_default:
15+
external: true
16+
redis_default:
17+
external: true

docker-compose-telegrambot.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: '3'
2+
3+
services:
4+
animeloop-telegrambot:
5+
container_name: animeloop-telegrambot
6+
build:
7+
context: .
8+
dockerfile: ./Dockerfile-node
9+
networks:
10+
- postgres_default
11+
- redis_default
12+
command: yarn start:telegrambot
13+
networks:
14+
postgres_default:
15+
external: true
16+
redis_default:
17+
external: true

docker-compose-twitterbot.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: '3'
2+
3+
services:
4+
animeloop-twitterbot:
5+
container_name: animeloop-twitterbot
6+
build:
7+
context: .
8+
dockerfile: ./Dockerfile-node
9+
networks:
10+
- postgres_default
11+
- redis_default
12+
command: yarn start:twitterbot
13+
networks:
14+
postgres_default:
15+
external: true
16+
redis_default:
17+
external: true

docker-compose.yml

-58
This file was deleted.

0 commit comments

Comments
 (0)