@@ -4,23 +4,25 @@ services:
4
4
portus :
5
5
image : opensuse/portus:head
6
6
environment :
7
- - PORTUS_MACHINE_FQDN_VALUE=${MACHINE_FQDN}
8
- - PORTUS_CHECK_SSL_USAGE_ENABLED=false
7
+ PORTUS_MACHINE_FQDN_VALUE : ${MACHINE_FQDN}
9
8
10
9
# DB. The password for the database should definitely not be here. You are
11
10
# probably better off with Docker Swarm secrets.
12
- - PORTUS_PRODUCTION_HOST= db
13
- - PORTUS_PRODUCTION_PASSWORD=portus
14
- - PORTUS_PRODUCTION_DATABASE=portus_production
11
+ PORTUS_PRODUCTION_HOST : db
12
+ PORTUS_PRODUCTION_DATABASE : portus_production
13
+ PORTUS_PRODUCTION_PASSWORD : ${DATABASE_PASSWORD}
15
14
16
15
# Secrets. It can possibly be handled better with Swarm's secrets.
17
- - PORTUS_SECRET_KEY_BASE=b494a25faa8d22e430e843e220e424e10ac84d2ce0e64231f5b636d21251eb6d267adb042ad5884cbff0f3891bcf911bdf8abb3ce719849ccda9a4889249e5c2
18
- - PORTUS_KEY_PATH= /certificates/portus.key
19
- - PORTUS_PASSWORD=12341234
16
+ PORTUS_SECRET_KEY_BASE : ${SECRET_KEY_BASE}
17
+ PORTUS_KEY_PATH : /certificates/portus.key
18
+ PORTUS_PASSWORD : ${ PORTUS_PASSWORD}
20
19
21
- # NGinx is serving the assets instead of Puma. If you want to change this,
22
- # uncomment this line.
23
- - RAILS_SERVE_STATIC_FILES=true
20
+ # SSL
21
+ PORTUS_CHECK_SSL_USAGE_ENABLED : ' false'
22
+
23
+ # Since we have no nginx in insecure mode, portus have to
24
+ # serve the static files
25
+ RAILS_SERVE_STATIC_FILES : ' true'
24
26
ports :
25
27
- 3000:3000
26
28
links :
@@ -31,21 +33,21 @@ services:
31
33
crono :
32
34
image : opensuse/portus:head
33
35
environment :
34
- - PORTUS_MACHINE_FQDN_VALUE= ${MACHINE_FQDN}
36
+ PORTUS_MACHINE_FQDN_VALUE : ${MACHINE_FQDN}
35
37
36
38
# DB. The password for the database should definitely not be here. You are
37
39
# probably better off with Docker Swarm secrets.
38
- - PORTUS_PRODUCTION_HOST= db
39
- - PORTUS_PRODUCTION_DATABASE= portus_production
40
- - PORTUS_PRODUCTION_PASSWORD=portus
40
+ PORTUS_PRODUCTION_HOST : db
41
+ PORTUS_PRODUCTION_DATABASE : portus_production
42
+ PORTUS_PRODUCTION_PASSWORD : ${DATABASE_PASSWORD}
41
43
42
44
# Secrets. It can possibly be handled better with Swarm's secrets.
43
- - PORTUS_SECRET_KEY_BASE=b494a25faa8d22e430e843e220e424e10ac84d2ce0e64231f5b636d21251eb6d267adb042ad5884cbff0f3891bcf911bdf8abb3ce719849ccda9a4889249e5c2
44
- - PORTUS_KEY_PATH= /certificates/portus.key
45
- - PORTUS_PASSWORD=12341234
45
+ PORTUS_SECRET_KEY_BASE : ${SECRET_KEY_BASE}
46
+ PORTUS_KEY_PATH : /certificates/portus.key
47
+ PORTUS_PASSWORD : ${ PORTUS_PASSWORD}
46
48
47
49
# We want to execute crono, not portus
48
- - PORTUS_INIT_COMMAND= bin/crono
50
+ PORTUS_INIT_COMMAND : bin/crono
49
51
links :
50
52
- db
51
53
volumes :
@@ -57,7 +59,7 @@ services:
57
59
MYSQL_DATABASE : portus_production
58
60
59
61
# Again, the password shouldn't be handled like this.
60
- MYSQL_ROOT_PASSWORD : portus
62
+ MYSQL_ROOT_PASSWORD : ${DATABASE_PASSWORD}
61
63
volumes :
62
64
- /var/lib/portus/mariadb:/var/lib/mysql
63
65
0 commit comments