mirror of
https://github.com/fergalmoran/dss.docker.git
synced 2025-12-22 01:08:34 +00:00
123 lines
2.3 KiB
YAML
123 lines
2.3 KiB
YAML
data:
|
|
restart: "no"
|
|
image: postgres:9.4
|
|
volumes:
|
|
- /var/lib/postgresql
|
|
command: /bin/true
|
|
|
|
db:
|
|
restart: "always"
|
|
image: postgres:9.4
|
|
volumes_from:
|
|
- data
|
|
ports:
|
|
- "5432:5432"
|
|
|
|
rabbitmq:
|
|
restart: "always"
|
|
image: tutum/rabbitmq
|
|
environment:
|
|
- RABBITMQ_PASS=wZ59kFTJZN8YQ
|
|
ports:
|
|
- "4369:4369"
|
|
- "5672:5672"
|
|
- "15672:15672"
|
|
|
|
redis:
|
|
restart: "always"
|
|
image: redis
|
|
|
|
#icecast:
|
|
# build: ./icecast/
|
|
# volumes:
|
|
# - ./logs:/var/log/icecast2
|
|
# - /etc/localtime:/etc/localtime:ro
|
|
# environment:
|
|
# - ICECAST_SOURCE_PASSWORD=RDzNlgqmj67vk
|
|
# - ICECAST_ADMIN_PASSWORD=CrVuP5evoJZ0
|
|
# - ICECAST_RELAY_PASSWORD=9PmUbI1mLne9o
|
|
# ports:
|
|
# - 8000:8000
|
|
|
|
api:
|
|
restart: "always"
|
|
image: fergalmoran/dss.api:latest
|
|
volumes:
|
|
- /files
|
|
ports:
|
|
- "8001:8001"
|
|
env_file:
|
|
- ./api_env
|
|
links:
|
|
- "db:db"
|
|
- "redis:redis"
|
|
# - "icecast:icecast"
|
|
- "rabbitmq:rabbitmq"
|
|
command: ./run_web.sh
|
|
|
|
celery:
|
|
restart: "always"
|
|
image: fergalmoran/dss.api
|
|
env_file:
|
|
- ./api_env
|
|
volumes_from:
|
|
- api
|
|
links:
|
|
- "db:db"
|
|
- "redis:redis"
|
|
- "rabbitmq:rabbitmq"
|
|
command: ./run_celery.sh
|
|
|
|
web:
|
|
restart: "always"
|
|
image: fergalmoran/dss.web
|
|
volumes:
|
|
- /app/dist/public/assets
|
|
env_file:
|
|
- ./web_env
|
|
restart: "always"
|
|
links:
|
|
- "redis:redis"
|
|
ports:
|
|
- "8088:8088"
|
|
|
|
#icecast:
|
|
# build: ./icecast/
|
|
# volumes:
|
|
# - ./logs:/var/log/icecast2
|
|
# - /etc/localtime:/etc/localtime:ro
|
|
# environment:
|
|
# - ICECAST_SOURCE_PASSWORD=RDzNlgqmj67vk
|
|
# - ICECAST_ADMIN_PASSWORD=CrVuP5evoJZ0
|
|
# - ICECAST_RELAY_PASSWORD=9PmUbI1mLne9o
|
|
# ports:
|
|
# - 8000:8000
|
|
|
|
#radio:
|
|
# image: fergalmoran/dss.radio
|
|
# env_file:
|
|
# - ./radio_env
|
|
# ports:
|
|
# - "8888:8888"
|
|
# links:
|
|
# - "icecast:icecast"
|
|
# - "api:api"
|
|
|
|
nginx:
|
|
restart: "always"
|
|
build: ./nginx/
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
links:
|
|
- "api:api"
|
|
- "web:web"
|
|
# - "icecast:icecast"
|
|
# - "radio:radio"
|
|
volumes:
|
|
- /etc/letsencrypt:/etc/letsencrypt
|
|
restart: "always"
|
|
volumes_from:
|
|
- api
|
|
- web
|