30 lines
507 B
YAML
30 lines
507 B
YAML
networks:
|
|
web:
|
|
external: true
|
|
|
|
services:
|
|
nginx:
|
|
image: nginx:alpine
|
|
ports:
|
|
- "80:80"
|
|
volumes:
|
|
- ./public:/usr/share/nginx/html:ro
|
|
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
|
restart: unless-stopped
|
|
environment:
|
|
- NGINX_HOST=localhost
|
|
- NGINX_PORT=80
|
|
networks:
|
|
- web
|
|
|
|
builder:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
entrypoint: /bin/sh
|
|
volumes:
|
|
- .:/app
|
|
networks:
|
|
- web
|
|
# command: ls -l
|