Browse Source

init

tags/v1.0.0^0
Robin Thoni 5 years ago
parent
commit
d13444f190
4 changed files with 80 additions and 0 deletions
  1. 54
    0
      docker-compose.yml
  2. 24
    0
      env
  3. 1
    0
      mariadb/Dockerfile
  4. 1
    0
      passbolt/Dockerfile

+ 54
- 0
docker-compose.yml View File

@@ -0,0 +1,54 @@
1
+version: '3.7'
2
+
3
+x-common: &common
4
+#  restart: unless-stopped
5
+  env_file:
6
+    - env
7
+
8
+services:
9
+#    postgresql:
10
+#        <<: *common
11
+#        build: ./postgresql
12
+#        networks:
13
+#            main:
14
+#                aliases:
15
+#                    - postgresql.main.internal.docker
16
+#        volumes:
17
+#            - ./data/postgresql/data:/var/lib/postgresql/data
18
+#        ports:
19
+#            - "127.0.0.1:35180:5432"
20
+
21
+    mariadb:
22
+        <<: *common
23
+        build: ./mariadb
24
+        networks:
25
+            main:
26
+                aliases:
27
+                    - mariadb.main.internal.docker
28
+        volumes:
29
+            - ./data/mariadb/data:/var/lib/mysql
30
+        ports:
31
+            - "127.0.0.1:35180:3306"
32
+
33
+    passbolt:
34
+        <<: *common
35
+        build: ./passbolt
36
+        networks:
37
+            main:
38
+                aliases:
39
+                    - passbolt.main.internal.docker
40
+        volumes:
41
+            - ./data/passbolt/gpg:/var/www/passbolt/config/gpg
42
+            - ./data/passbolt/images_volume:/var/www/passbolt/webroot/img/public
43
+        tmpfs:
44
+            - /run
45
+        tty: true
46
+        command: ["/usr/bin/wait-for.sh", "mariadb.main.internal.docker:3306", "--", "/docker-entrypoint.sh"]
47
+        depends_on:
48
+            - mariadb
49
+        ports:
50
+            - "127.0.0.1:35181:80"
51
+            - "127.0.0.1:35182:443"
52
+
53
+networks:
54
+    main:

+ 24
- 0
env View File

@@ -0,0 +1,24 @@
1
+TZ=Europe/London
2
+
3
+MYSQL_ROOT_PASSWORD=change_it
4
+MYSQL_USER=passbolt
5
+MYSQL_PASSWORD=change_it
6
+MYSQL_DATABASE=passbolt
7
+
8
+DATASOURCES_DEFAULT_HOST=mariadb.main.internal.docker
9
+DATASOURCES_DEFAULT_USERNAME=passbolt
10
+DATASOURCES_DEFAULT_PASSWORD=change_it
11
+DATASOURCES_DEFAULT_DATABASE=passbolt
12
+DATASOURCES_DEFAULT_PORT=3306
13
+
14
+APP_FULL_BASE_URL=https://passbolt.example.com
15
+
16
+PASSBOLT_KEY_NAME=passbolt example.com
17
+PASSBOLT_KEY_EMAIL=passbolt@example.com
18
+
19
+EMAIL_TRANSPORT_DEFAULT_HOST=mail1.example.com
20
+EMAIL_TRANSPORT_DEFAULT_PORT=587
21
+EMAIL_TRANSPORT_DEFAULT_USERNAME=passbolt@example.com
22
+EMAIL_TRANSPORT_DEFAULT_PASSWORD=change_it
23
+EMAIL_TRANSPORT_DEFAULT_TLS=true
24
+EMAIL_DEFAULT_FROM=passbolt@example.com

+ 1
- 0
mariadb/Dockerfile View File

@@ -0,0 +1 @@
1
+FROM mariadb:10.3

+ 1
- 0
passbolt/Dockerfile View File

@@ -0,0 +1 @@
1
+FROM passbolt/passbolt:2.9.0-debian

Loading…
Cancel
Save