Initial
This commit is contained in:
commit
72d78de178
2 changed files with 38 additions and 0 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
data
|
||||
mariadb
|
||||
*.env
|
35
compose.yml
Normal file
35
compose.yml
Normal file
|
@ -0,0 +1,35 @@
|
|||
networks:
|
||||
forgejo:
|
||||
external: false
|
||||
nginx_proxy:
|
||||
external: true
|
||||
|
||||
services:
|
||||
forgejo:
|
||||
image: codeberg.org/forgejo/forgejo:9
|
||||
container_name: forgejo
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- forgejo
|
||||
- nginx_proxy
|
||||
volumes:
|
||||
- ./data:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- '2222:22'
|
||||
|
||||
forgejo-db:
|
||||
container_name: forgejo-db
|
||||
image: mariadb:10.11
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- db.env
|
||||
volumes:
|
||||
- ./mariadb:/var/lib/mysql
|
||||
networks:
|
||||
- forgejo
|
||||
|
Loading…
Reference in a new issue