Skip to content

Commit

Permalink
Create docker-compose-local.yml
Browse files Browse the repository at this point in the history
- Created `docker-compose` file for self-cert testing
  • Loading branch information
MattHalloran committed Oct 21, 2024
1 parent 13141e4 commit 5e9ed0e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docker-compose-local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: '3.8'

services:
nginx-local:
image: nginx:latest
container_name: nginx-local-dev
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/local.conf:/etc/nginx/conf.d/default.conf
- ./certs/localhost+2.pem:/etc/nginx/certs/localhost+2.pem
- ./certs/localhost+2-key.pem:/etc/nginx/certs/localhost+2-key.pem
networks:
- localnet

networks:
localnet:
driver: bridge

0 comments on commit 5e9ed0e

Please sign in to comment.