You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

46 lines
1.2 KiB

version: '3'
services:
#Nginx Service
agency-nginx:
image: nginx:alpine
container_name: agency-nginx
restart: unless-stopped
tty: true
ports:
- "17780:80"
- "17743:443"
volumes:
- ./:/var/www
- ./nginx/conf.d/:/etc/nginx/conf.d/
networks:
- app-network
#-----------------------------------------------------------------------------
#PHP Service
agencyphp:
image: agencyphp
container_name: agencyphp
build:
context: .
dockerfile: ./php/Dockerfile
restart: unless-stopped
tty: true
working_dir: /var/www
volumes:
- ./:/var/www
- ./php/local.ini:/usr/local/etc/php/conf.d/local.ini
networks:
- app-network
# ============================================================================
# docker compose run --rm certbot renew
# certbot:
# image: certbot/certbot:latest
# volumes:
# - ./certbot/www/:/var/www/certbot/:rw
# - ./certbot/conf/:/etc/letsencrypt/:rw
#-------------------------------------------------------------------------------
#Docker Networks
networks:
app-network:
name: agency.internal
driver: bridge
# external: true