-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (41 loc) · 881 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (41 loc) · 881 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
version: '3'
services:
totara:
build: ./docker/totara
ports:
- "127.0.0.1:80:80"
volumes:
- ./siteroot:/var/www
db:
image: postgres:9.6
environment:
PHP_EXTENTION_XDEBUG: 1
POSTGRES_PASSWORD: password
POSTGRES_DB: totara
POSTGRES_USER: totara
volumes:
- 'db:/var/lib/postgresql'
test-db:
image: postgres:9.6
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: totara
POSTGRES_USER: totara
volumes:
- 'testdb:/var/lib/postgresql'
pgadmin:
image: dpage/pgadmin4:4.18
environment:
PGADMIN_DEFAULT_EMAIL: moodle@moodle.com
PGADMIN_DEFAULT_PASSWORD: moodle
PGADMIN_LISTEN_PORT: 80
ports:
- "127.0.0.1:8080:80"
volumes:
- pgadmin:/var/lib/pgadmin
links:
- "db:pgadmin-server"
volumes:
db:
testdb:
pgadmin: