Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
Add docker compose for presentation
Browse files Browse the repository at this point in the history
  • Loading branch information
XiangRongLin committed May 26, 2021
1 parent 5467ce0 commit bbee651
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.env
9 changes: 9 additions & 0 deletions config/novel-rest/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
db:
url: jdbc:postgresql://postgres:5432/novel
username: novel
password: novel

amq:
url: tcp://amq:61616
username: admin
password: admin
4 changes: 4 additions & 0 deletions config/novel-worker/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
amq:
url: tcp://amq:61616
username: admin
password: admin
40 changes: 40 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
version: '3.9'
services:
postgres:
image: postgres:13.2-alpine
hostname: postgres
restart: always
volumes:
- postgresdata:/var/lib/postgresql/data
environment:
- POSTGRES_USER=novel
- POSTGRES_PASSWORD=novel
- POSTGRES_DB=novel
ports:
- 5432:5432
amq:
image: rmohr/activemq:5.15.9-alpine
hostname: amq
restart: always
ports:
- 61616:61616
- 8161:8161

novel-worker:
image: xiangronglin/novel-worker:latest
volumes:
- ${project_root}/data:/novel
- ${project_root}/config/novel-worker:/config

novel-rest:
image: xiangronglin/novel-rest:latest
volumes:
- ${project_root}/data:/novel
- ${project_root}/config/novel-rest:/config
ports:
- 8080:8080


volumes:
postgresdata:

0 comments on commit bbee651

Please sign in to comment.