-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
42 lines (42 loc) · 1.58 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
version: "3.7"
services:
sync:
build: .
depends_on:
- "mysql"
ports:
# Change these ports to match your application settings defined in config.yaml
- "8980:8080"
- "1337:1337"
- "8443:8443"
volumes:
# Change the path to import your certificates for SSL
- "./certs:/etc/certs"
# Change this path to import your config.yaml into the container.
# By default it is in the same folder as the docker-compose.yml file.
- "./config.yaml:/home/syncuser/sync/config.yaml"
# If you will be using any of the auxillary configs (camo, email, prometheus) please uncomment the next line
# - "./conf:/home/syncuser/sync/conf"
# If you plan on using a reverse proxy please add the name of your docker network which contains the proxy.
# An example is provided in the Readme.
networks:
- sync_internal
mysql:
image: mariadb:10.5.1
environment:
# Change these environmental variables to match what is in your config.yaml
- MYSQL_ROOT_PASSWORD=sync
- MYSQL_DATABASE=cytube3
- MYSQL_USER=cytube3
- MYSQL_PASSWORD=super_secure_password
volumes:
# This will create and mount the mysql files in the same folder as the docker-compose.yml file.
# You can change this to be anywhere.
# This will provide data persistence to your MariaDB database.
- "./mysql:/var/lib/mysql"
networks:
- sync_internal
# If you are using a reverse proxy please do not forget to add the network here as well.
# Refer to the Readme for more information regarding using a Reverse Proxy.
networks:
sync_internal: