postgrsql / redis / postfix relay / nodejs&expressjs 的 fig.yml
內容如下:
這樣可以快速建立 sit / uat 環境了
那程式要怎麼寫就自己來吧~
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db: | |
image: sameersbn/postgresql:9.4 | |
ports: | |
- "5432:5432" | |
environment: | |
DB_NAME: YOUR DATABASE NAME | |
DB_USER: YOUR DATABASE USERNAME | |
DB_PASS: YOUR DATABASE PASSWORD | |
volumes: | |
- /opt/postgresql/data:/var/lib/postgresql | |
redis: | |
image: redis:latest | |
ports: | |
- "6379:6379" | |
volumes: | |
- /opt/redis:/var/lib/redis | |
smtp: | |
image: alterrebe/postfix-relay | |
ports: | |
- "25:25" | |
environment: | |
SMTP_LOGIN: YOUR AWS SES Access Key ID. | |
SMTP_PASSWORD: YOUR AWS SES Secret Access Key. | |
RELAY_HOST_NAME: YOUR HOST. | |
EXT_RELAY_HOST: YOUR AWS SES SMTP SERVER. | |
fronend: | |
image: sameersbn/nodejs:latest | |
working_dir: /home/nodejs/src | |
command: "nodemon ./bin/www" | |
hostname: dev | |
ports: | |
- "3000:3000" | |
volumes: | |
- ./:/home/nodejs/src | |
links: | |
- redis | |
- db | |
- smtp |
這樣可以快速建立 sit / uat 環境了
那程式要怎麼寫就自己來吧~
留言
發佈留言