-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose-php5.6.yml
More file actions
48 lines (39 loc) · 907 Bytes
/
Copy pathdocker-compose-php5.6.yml
File metadata and controls
48 lines (39 loc) · 907 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
43
44
# Docker-Compose configuration file.
# v3 syntax
version: '3'
#networks
networks:
app-env:
services:
# Postgres
db:
image: postgres:9.6
volumes:
- ./postgres/postgres-data:/var/lib/postgresql/data
#Scripts
- ./postgres/scripts/init.sql:/docker-entrypoint-initdb.d/init.sql
- ./postgres/tmp:/tmp #carregamento de arquivos .sql para restore
environment:
- "DB_PORT=5433"
- "POSTGRES_USER=postgres"
- "POSTGRES_PASSWORD=123456"
ports:
- "5433:5432"
networks:
app-env:
# The Application. Php
app:
build: php5.6-ubuntu
container_name: apachephp
volumes:
- ./html:/var/www/html
- ./moodledatas:/var/moodledatas
- ./php5.6-ubuntu/logs:/var/log/apache2
stdin_open: true
tty: true
networks:
app-env:
ports:
- "8080:80"
links:
- db