forked from CRLibre/API_Hacienda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (42 loc) · 1.34 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.4'
services:
php-apache:
build:
context: .
dockerfile: ./docker-php-apache/Dockerfile
ports:
- 8080:80
- 8443:443
#env_file: ./docker-php-apache/php-apache.env
environment:
CRLIBRE_API_HACIENDA_DB_HOST: 'mariadb' #
CRLIBRE_API_HACIENDA_DB_NAME: 'testdb' #
CRLIBRE_API_HACIENDA_DB_USER: 'testuser' #
CRLIBRE_API_HACIENDA_DB_PASSWORD: 'testpassword' #
DB_NAME: 'testdb'
DB_PASSWORD: 'testpassword'
DB_USERNAME: 'testuser'
DB_HOST: 'mariadb'
log_errors: 1
core_install: '/var/www/api/'
sessionLifetime: -1
depends_on:
- 'mariadb'
links:
- 'mariadb:database'
mariadb:
image: mariadb:10.1
ports:
- 4407:3306
volumes:
- ./recursos/sql:/docker-entrypoint-initdb.d
- /var/lib/mysql
environment:
TZ: "Europe/Rome"
MYSQL_ALLOW_EMPTY_PASSWORD: "no"
MYSQL_ROOT_PASSWORD: "rootpwd"
MYSQL_USER: 'testuser'
MYSQL_PASSWORD: 'testpassword'
MYSQL_DATABASE: 'testdb'
restart: always
tty: true