feature: add docker
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: docker/Dockerfile
|
||||
image: thankcard-system-app
|
||||
container_name: thankcard-system-app
|
||||
working_dir: /var/www/html
|
||||
volumes:
|
||||
- ..:/var/www/html
|
||||
env_file:
|
||||
- ./env/.env.app
|
||||
networks:
|
||||
- thankcard-system-network
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
|
||||
nginx:
|
||||
image: nginx:1.25-alpine
|
||||
container_name: thankcard-system-nginx
|
||||
ports:
|
||||
- "8888:80"
|
||||
volumes:
|
||||
- ..:/var/www/html
|
||||
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
|
||||
depends_on:
|
||||
- app
|
||||
networks:
|
||||
- thankcard-system-network
|
||||
|
||||
networks:
|
||||
thankcard-system-network:
|
||||
name: thankcard-system-network
|
||||
Reference in New Issue
Block a user