File tree Expand file tree Collapse file tree 3 files changed +50
-25
lines changed Expand file tree Collapse file tree 3 files changed +50
-25
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,6 @@ EXPOSE 80
27
27
EXPOSE 81
28
28
EXPOSE 443
29
29
30
- CMD [ "/init" ]
30
+ ENTRYPOINT [ "/init" ]
31
31
32
32
HEALTHCHECK --interval=5s --timeout=3s CMD /bin/check-health
Original file line number Diff line number Diff line change
1
+ # docker-compose.yml
2
+ # RUN: ```docker-compose --env-file```
3
+ version : " 3.7"
4
+
5
+ secrets :
6
+ # paths assume the .secrets folder is sibling depth to folder where docker-compose resides
7
+ DB_ROOT_PWD :
8
+ file : ../../../homelab-setup/docker_secrets/db_root_pwd.txt
9
+ MYSQL_PWD :
10
+ file : ../../../homelab-setup/docker_secrets/mysql_pwd.txt
11
+
12
+ services :
13
+ mariadb :
14
+ image : mariadb:test
15
+ container_name : mariadb
16
+ secrets :
17
+ - DB_ROOT_PWD
18
+ - MYSQL_PWD
19
+ environment :
20
+ # MYSQL_ROOT_PASSWORD: "npm"
21
+ MYSQL_ROOT_PASSWORD__FILE : /run/secrets/DB_ROOT_PWD
22
+ MYSQL_DATABASE : " npm"
23
+ MYSQL_USER : " npm"
24
+ # MYSQL_PASSWORD: "npm"
25
+ MYSQL_PASSWORD__FILE : /run/secrets/MYSQL_PWD
26
+ volumes :
27
+ - ./data/mysql:/var/lib/mysql
28
+
29
+ npm :
30
+ build :
31
+ context : ../../
32
+ dockerfile : ./docker/Dockerfile
33
+ image : npm:test # provide a name and tag for the image
34
+ container_name : npm
35
+ secrets :
36
+ - MYSQL_PWD
37
+ environment :
38
+ DISABLE_IPV6 : ' true'
39
+ DB_MYSQL_HOST : " mariadb"
40
+ DB_MYSQL_PORT : 3306
41
+ MYSQL_DATABASE : " npm"
42
+ MYSQL_USER : " npm"
43
+ # MYSQL_PASSWORD: "npm"
44
+ MYSQL_PASSWORD__FILE : /run/secrets/MYSQL_PWD
45
+ volumes :
46
+ - ./data/npm:/data
47
+ - ./data/letsencrypt:/etc/letsencrypt
48
+ depends_on :
49
+ - mariadb
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments