Skip to content

Commit 440baf6

Browse files
authored
Create drupal-with-postgresql.yaml
1 parent de7380f commit 440baf6

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# documentation: https://www.drupal.org/about
2+
# slogan: Drupal is a free and open-source web content management system written in PHP and distributed under the GNU General Public License.
3+
# tags: cms, blog, content, management, postgresql
4+
# logo: svgs/drupal.svg
5+
6+
services:
7+
drupal:
8+
image: 'drupal:10-apache'
9+
environment:
10+
- SERVICE_FQDN_DRUPAL
11+
- DB_HOST=postgres
12+
- DB_NAME=postgres
13+
- DB_USER=postgres
14+
- DB_PASSWORD=$SERVICE_PASSWORD_POSTGRES
15+
volumes:
16+
- type: volume
17+
source: drupal_modules
18+
target: /var/www/html/modules
19+
is_directory: true
20+
- type: volume
21+
source: drupal_profiles
22+
target: /var/www/html/profiles
23+
is_directory: true
24+
- type: volume
25+
source: drupal_themes
26+
target: /var/www/html/themes
27+
is_directory: true
28+
- type: volume
29+
source: drupal_sites
30+
target: /var/www/html/sites
31+
is_directory: true
32+
depends_on:
33+
- postgres
34+
restart: always
35+
postgres:
36+
image: 'postgres:16'
37+
environment:
38+
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
39+
restart: always

0 commit comments

Comments
 (0)