-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 919 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (39 loc) · 919 Bytes
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
# Drupal with PostgreSQL
#
# Access via "http://localhost:8080"
# (or "http://$(docker-machine ip):8080" if using docker-machine)
#
# During initial Drupal setup,
# Database type: PostgreSQL
# Database name: postgres
# Database username: postgres
# Database password: example
# ADVANCED OPTIONS; Database host: postgres
version: '3.1'
services:
drupal:
image: drupal
container_name: drupalapp
ports:
- 6080:80
volumes:
- /var/www/html/modules
- /var/www/html/profiles
- /var/www/html/themes
- /var/www/html/sites
environment:
DRUPAL_TRUSTED_HOST: '^rajawat\.com$'
restart: always
networks:
- nginx-network-default
postgres:
image: postgres
container_name: drupaldb
environment:
POSTGRES_PASSWORD: example
restart: always
networks:
- nginx-network-default
networks:
nginx-network-default:
external: true