Initial commit
This commit is contained in:
32
docker-compose.yml
Normal file
32
docker-compose.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
version: '3.3'
|
||||
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: ./php
|
||||
container_name: photo_gallery_php
|
||||
volumes:
|
||||
- ./web:/var/www/html
|
||||
user: "1000:1000"
|
||||
#ports:
|
||||
# - "9000:9000"
|
||||
networks:
|
||||
- photo-gallery-network
|
||||
|
||||
nginx:
|
||||
image: nginx:latest
|
||||
container_name: photo_gallery_nginx
|
||||
volumes:
|
||||
- ./web:/var/www/html
|
||||
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
|
||||
ports:
|
||||
- "8080:80"
|
||||
depends_on:
|
||||
- app
|
||||
networks:
|
||||
- photo-gallery-network
|
||||
|
||||
networks:
|
||||
photo-gallery-network:
|
||||
driver: bridge
|
||||
|
||||
Reference in New Issue
Block a user