You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.4 KiB
53 lines
1.4 KiB
services: |
|
postgres: |
|
image: bitnami/postgresql:11 |
|
container_name: preinscripcion_postgres |
|
environment: |
|
POSTGRESQL_DATABASE: preinscripcion |
|
POSTGRESQL_USERNAME: postgres |
|
POSTGRESQL_PASSWORD: postgres123 |
|
POSTGRESQL_ENCODING: LATIN1 |
|
POSTGRESQL_LC_COLLATE: C |
|
POSTGRESQL_LC_CTYPE: C |
|
volumes: |
|
- postgres_data:/var/lib/postgresql/data |
|
- ./BD/creacion/creacion_preinscripcion3_postgresql.sql:/docker-entrypoint-initdb.d/01-creacion.sql |
|
- ./docker/init-db.sql:/docker-entrypoint-initdb.d/02-init.sql |
|
ports: |
|
- "5432:5432" |
|
networks: |
|
- preinscripcion_network |
|
restart: unless-stopped |
|
|
|
web: |
|
build: . |
|
container_name: preinscripcion_web |
|
depends_on: |
|
- postgres |
|
ports: |
|
- "8080:80" |
|
volumes: |
|
- .:/var/www/html |
|
- ./instalacion/config.php:/var/www/html/instalacion/config.php |
|
- ./instalacion/alias.conf:/var/www/html/instalacion/alias.conf |
|
- ./instalacion/login.php:/var/www/html/instalacion/login.php |
|
- apache_logs:/var/log/apache2 |
|
environment: |
|
- DB_HOST=postgres |
|
- DB_PORT=5432 |
|
- DB_NAME=preinscripcion |
|
- DB_USER=postgres |
|
- DB_PASSWORD=postgres123 |
|
networks: |
|
- preinscripcion_network |
|
restart: unless-stopped |
|
|
|
volumes: |
|
postgres_data: |
|
driver: local |
|
apache_logs: |
|
driver: local |
|
|
|
networks: |
|
preinscripcion_network: |
|
driver: bridge
|
|
|