docker comnpose yml

This commit is contained in:
呱呱呱 2023-11-28 14:15:54 +08:00 committed by root
parent 16bbcdca6d
commit 1239af8b5f
1 changed files with 25 additions and 0 deletions

25
docker-compose.yml Normal file
View File

@ -0,0 +1,25 @@
version: '3'
services:
app:
env_file: .env
container_name: gitea_hat
restart: always
build:
context: .
dockerfile: Dockerfile
external_links:
- mysql
volumes:
- /root/gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks:
- default
- app_net
ports:
- 10082:3000
networks:
app_net:
external: true