docker-compose.yml
· 901 B · YAML
原始文件
services:
nginx:
image: nginx:latest
restart: always
volumes:
- ./conf:/etc/nginx/conf.d/
- ./wiki:/usr/share/nginx/wiki
- ./html:/usr/share/nginx/html
- ./certs:/usr/share/nginx/certs
ports:
- 443:443
depends_on:
- fpm
fpm:
image: php:fpm
restart: always
ports:
- ":9000"
volumes:
- ./wiki:/usr/share/nginx/wiki
forgejo:
image: codeberg.org/forgejo/forgejo:7
environment:
- USER_UID=1000
- USER_GID=1000
restart: always
volumes:
- forgejo:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "222:22"
opengist:
image: ghcr.io/thomiceli/opengist:1.7
restart: always
ports:
- "6157:6157" # HTTP port
volumes:
- "./opengist:/opengist"
volumes:
forgejo:
driver: local
1 | services: |
2 | nginx: |
3 | image: nginx:latest |
4 | restart: always |
5 | volumes: |
6 | - ./conf:/etc/nginx/conf.d/ |
7 | - ./wiki:/usr/share/nginx/wiki |
8 | - ./html:/usr/share/nginx/html |
9 | - ./certs:/usr/share/nginx/certs |
10 | ports: |
11 | - 443:443 |
12 | depends_on: |
13 | - fpm |
14 | |
15 | fpm: |
16 | image: php:fpm |
17 | restart: always |
18 | ports: |
19 | - ":9000" |
20 | volumes: |
21 | - ./wiki:/usr/share/nginx/wiki |
22 | |
23 | forgejo: |
24 | image: codeberg.org/forgejo/forgejo:7 |
25 | environment: |
26 | - USER_UID=1000 |
27 | - USER_GID=1000 |
28 | restart: always |
29 | volumes: |
30 | - forgejo:/data |
31 | - /etc/timezone:/etc/timezone:ro |
32 | - /etc/localtime:/etc/localtime:ro |
33 | ports: |
34 | - "3000:3000" |
35 | - "222:22" |
36 | |
37 | opengist: |
38 | image: ghcr.io/thomiceli/opengist:1.7 |
39 | restart: always |
40 | ports: |
41 | - "6157:6157" # HTTP port |
42 | volumes: |
43 | - "./opengist:/opengist" |
44 | |
45 | volumes: |
46 | forgejo: |
47 | driver: local |
48 |