-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (39 loc) · 1.02 KB
/
docker-compose.yml
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.21'
services:
postgres:
image: postgres:11.6-alpine
container_name: ${POSTGRES_CONTAINER}
environment:
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
volumes:
- ./pg_data:/var/lib/postgresql
networks:
guarani-network:
aliases:
- postgres
php-apache-server:
container_name: ${APACHE_CONTAINER}
build:
dockerfile: Dockerfile-php-apache
volumes:
- ./guarani:/usr/local/proyectos/guarani
- ./g3w3:/usr/local/proyectos/g3w3
- ./config/sites-available/toba_3_3.conf:/etc/apache2/sites-available/toba_3_3.conf
- ./config/sites-available/alias.conf:/etc/apache2/sites-available/alias.conf
- ./config/php.ini:/usr/local/etc/php/php.ini
ports:
- 8081:8081
- 80:80
links:
- postgres:postgres
networks:
guarani-network:
aliases:
- php-apache
networks:
guarani-network:
name: guarani-net
driver: bridge
ipam:
driver: default