freelance-project-34-market.../docker-compose.yml

61 lines
1.4 KiB
YAML

version: '3.7'
services:
app:
build:
context: .
dockerfile: ./docker/app/Dockerfile
volumes:
- ./d1/:/app/d1/:ro
- ./tmp/cache/:/app/tmp/cache/:ro
restart: on-failure
ssl-app:
build:
context: .
dockerfile: ./docker/ssl-app/Dockerfile
volumes:
- ./d1/:/app/d1/:ro
- ./tmp/d1/:/app/tmp/d1/:ro
- ./tmp/d1/letsencrypt:/etc/letsencrypt:rw
restart: on-failure
cpanel:
build:
context: .
dockerfile: ./docker/cpanel/Dockerfile
#links:
# - app
volumes:
- ./d1/:/app/d1:ro
- ./tmp/d1/:/app/tmp/d1/:ro
restart: on-failure
dynu:
build:
context: .
dockerfile: ./docker/dynu/Dockerfile
profiles:
- broken
volumes:
- ./d1/dynu_update.py:/app/d1/dynu_update.py:ro
- ./tmp/cache/dynu.auth.json:/app/tmp/cache/dynu.auth.json:ro
restart: on-failure
# links:
# - ngrok
ngrok:
image: wernight/ngrok
#links:
# - app
profiles:
- broken
command: ['ngrok', 'http', 'app:80']
volumes:
- ./tmp/cache/ngrok.yml:/home/ngrok/.ngrok2/ngrok.yml:ro
restart: on-failure
#forward:
# build:
# context: .
# dockerfile: ./docker/forward/Dockerfile
# volumes:
# - ./d1/forward.py:/app/d1/forward.py:ro
# - ./tmp/cache/forward_data:/app/tmp/cache/forward_data:ro
# restart: always