feature: add docker

This commit is contained in:
antv
2026-06-30 14:03:05 +07:00
parent c5016489ac
commit 96eac88f36
19 changed files with 211 additions and 36 deletions
+33
View File
@@ -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