53 lines
1.6 KiB
YAML
53 lines
1.6 KiB
YAML
services:
|
|
ukhorsecremations.co.uk-nginx:
|
|
image: nginx:latest
|
|
container_name: ukhorsecremations.co.uk-nginx
|
|
restart: unless-stopped
|
|
working_dir: /var/www
|
|
labels:
|
|
- traefik.enable=true
|
|
- traefik.docker.network=proxy
|
|
- traefik.http.routers.ukhorsecremations-co-uk.rule=Host(`ukhorsecremations-co-uk.web1.phatkoala.net`)
|
|
- traefik.http.services.ukhorsecremations-co-uk.loadbalancer.server.port=3000
|
|
- traefik.http.routers.ukhorsecremations-co-uk.middlewares=basic-auth@file
|
|
volumes:
|
|
- './etc/nginx/nginx.conf:/etc/nginx/nginx.conf'
|
|
- './:/var/www'
|
|
networks:
|
|
- internal
|
|
- external
|
|
|
|
# ukhorsecremations.co.uk-node:
|
|
# container_name: ukhorsecremations.co.uk-node
|
|
# build:
|
|
# context: .
|
|
# dockerfile: ./etc/node/Dockerfile
|
|
|
|
ukhorsecremations.co.uk-php:
|
|
container_name: ukhorsecremations.co.uk-php
|
|
build:
|
|
context: .
|
|
dockerfile: ./etc/php/Dockerfile
|
|
args:
|
|
APP_ENV: ${APP_ENV}
|
|
restart: unless-stopped
|
|
working_dir: /var/www
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- './etc/php/php.ini:/usr/local/etc/php/conf.d/site.ini'
|
|
- './:/var/www'
|
|
expose:
|
|
- "9000"
|
|
networks:
|
|
- internal
|
|
- external
|
|
|
|
networks:
|
|
internal:
|
|
name: "internal"
|
|
internal: true
|
|
external:
|
|
name: "external"
|
|
driver: bridge
|