mirror of
https://github.com/wassname/talk.git
synced 2026-06-28 09:13:48 +08:00
37 lines
871 B
YAML
37 lines
871 B
YAML
# For details on the syntax of docker-compose.yml files, check out:
|
|
# https://docs.docker.com/compose/compose-file/compose-file-v2/
|
|
|
|
version: '2'
|
|
services:
|
|
talk:
|
|
image: coralproject/talk:latest
|
|
restart: always
|
|
ports:
|
|
- "3000:3000"
|
|
depends_on:
|
|
- mongo
|
|
- redis
|
|
environment:
|
|
- NODE_ENV=development # remove this line in production
|
|
- TALK_MONGO_URL=mongodb://mongo/talk
|
|
- TALK_REDIS_URL=redis://redis
|
|
- TALK_ROOT_URL=http://127.0.0.1:3000
|
|
- TALK_PORT=3000
|
|
- TALK_JWT_SECRET=password
|
|
- TALK_FACEBOOK_APP_ID=12345
|
|
- TALK_FACEBOOK_APP_SECRET=123abc
|
|
mongo:
|
|
image: mongo:latest
|
|
restart: always
|
|
volumes:
|
|
- mongo:/data/db
|
|
redis:
|
|
image: redis:latest
|
|
restart: always
|
|
volumes:
|
|
- redis:/data
|
|
volumes:
|
|
mongo:
|
|
external: false
|
|
redis:
|
|
external: false |