-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·72 lines (65 loc) · 1.75 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3.5"
services:
php-marketing-db:
# mariadb: 10.5.9
hostname: db
container_name: php-marketing-db
build:
context: docker/mariadb
args:
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
environment:
TZ: ${TIME_ZONE}
MYSQL_USER: ${DB_USER}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
volumes:
- ./io:/appdata/io
- ./docker/mariadb/scripts:/appdata/scripts
- ./docker/mariadb/initdb:/docker-entrypoint-initdb.d
ports:
- 3307:3306
networks:
- php-marketing-net
php-marketing-be:
# php:8.0.12-fpm
hostname: php
container_name: php-marketing-be
build:
context: docker/fpm
environment:
TZ: ${TIME_ZONE}
# estas variables sirven para cuando se ejecuta desde consola... creo :)
PHP_IDE_CONFIG: serverName=ServXdebug
PHP_XDEBUG_ENABLED: 1
XDEBUG_CONFIG: client_host=host.docker.internal client_port=9005
volumes:
- ./io:/appdata/io
- ./bash:/appdata/bash
- ./backend_web:/appdata/www/backend_web
- ./docker/fpm/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
networks:
- php-marketing-net
- mariadb-univ_net
php-marketing-web:
# nginx:latest
hostname: nginx
container_name: php-marketing-web
build:
context: docker/nginx
ports:
- 900:90 #api
- 901:91 #spa
volumes:
- ./io:/appdata/io
- ./backend_web/public:/appdata/www/backend_web/public
- ./frontend/restrict/build:/appdata/www/frontend/restrict/build
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php-marketing-be
networks:
- php-marketing-net
networks:
php-marketing-net:
mariadb-univ_net:
external: true