-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yml
52 lines (48 loc) · 1.39 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
services:
webapp:
image: dronahq/self-hosted:3.4.4-stable
platform: linux/amd64
container_name: dronahq-self-hosted-webapp
restart: always
volumes:
- ./dronahq.env:/app/.env:ro
- ./storage/files:/app/files:rw
- ./storage/private:/app/private:rw
ports:
- 8080:8080
mysqldb:
image: mysql:8.0.36-oracle
platform: linux
container_name: dronahq-self-hosted-mysqldb
restart: always
env_file: dronahq.env
command: --log-bin-trust-function-creators=1 --sql-mode= --default-authentication-plugin=mysql_native_password
volumes:
- ./init/mysql-init.sql:/docker-entrypoint-initdb.d/schema.sql:ro
- ./storage/mysql:/var/lib/mysql
ports:
- 3306:3306
mongodb:
image: mongo:5.0.11
platform: linux
container_name: dronahq-self-hosted-mongodb
restart: always
env_file: dronahq.env
volumes:
- ./init/mongo-init.sh:/docker-entrypoint-initdb.d/mongo-init.sh:ro
- ./init/mongo-init.dump:/mongo-init.dump
- ./storage/mongodb:/data/db
ports:
- 27017:27017
webserver:
image: nginx
platform: linux
container_name: dronahq-self-hosted-webserver
restart: always
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./storage/certbot/www:/var/www/certbot/:ro
- ./storage/certbot/conf/:/etc/nginx/ssl/:ro
ports:
- 80:80
- 443:443