docker-compose.yml
· 996 B · YAML
Ham
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"
opengist:
image: ghcr.io/thomiceli/opengist:1.7
restart: always
environment:
- OG_CUSTOM_LOGO=logo.png
- OG_CUSTOM_FAVICON=logo.png
- OG_SSH_GIT_ENABLED=false
ports:
- ":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" |
35 | |
36 | opengist: |
37 | image: ghcr.io/thomiceli/opengist:1.7 |
38 | restart: always |
39 | environment: |
40 | - OG_CUSTOM_LOGO=logo.png |
41 | - OG_CUSTOM_FAVICON=logo.png |
42 | - OG_SSH_GIT_ENABLED=false |
43 | ports: |
44 | - ":6157" # HTTP port |
45 | volumes: |
46 | - "./opengist:/opengist" |
47 | |
48 | volumes: |
49 | forgejo: |
50 | driver: local |