-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
71 lines (70 loc) · 1.71 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: "3"
networks:
gitea:
external: false
services:
server:
image: gitea/gitea:1.15.0
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=db:5432
- GITEA__database__NAME=gitea
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=gitea
restart: always
networks:
- gitea
volumes:
- ./volumes/gitea:/data
- ~/.ssh:/data/git/.ssh
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "222:22"
depends_on:
- db
db:
image: postgres:13
restart: always
environment:
- POSTGRES_USER=gitea
- POSTGRES_PASSWORD=gitea
- POSTGRES_DB=gitea
networks:
- gitea
volumes:
- ./volumes/postgres:/var/lib/postgresql/data
mosquitto:
networks:
- gitea
image: eclipse-mosquitto:2.0
volumes:
- ./volumes/srv/mqtt/data:/mosquitto/data
- ./volumes/srv/mqtt/log:/mosquitto/log
- ./configs/mosquitto_config:/mosquitto/config/mosquitto.conf
- ./configs/passwords.txt:/mosquitto/config/passwd_file
ports:
- "11883:1883"
- "18883:8883"
gitea-listener:
networks:
- gitea
image: gitea-listener:latest
build:
dockerfile: Dockerfile
context: .
environment:
GITEA_LISTENER_CONFIG_FILE: /code/gl_config.yaml
command: "bash -c 'source env/bin/activate && uvicorn --host 0.0.0.0
gitea_listener.app:app'"
restart: on-failure
ports:
- "9000:8000"
volumes:
- ./configs/gitea_listener_config.yaml:/code/gl_config.yaml
depends_on:
- mosquitto