-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
85 lines (78 loc) · 2.2 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
73
74
75
76
77
78
79
80
81
82
83
84
85
version: '3.8'
services:
web:
build:
context: envoirment/dev/nginx
container_name: mortgage-web
volumes:
- .:/application
networks:
- mortgage-dev
ports:
- ${EXTERNAL_WEBSERVER_PORT:-80}:80
restart: unless-stopped
depends_on:
- php
- database
- database-test
php:
build:
context: envoirment/dev/php
args:
INSTALL_XDEBUG: ${DOCKER_INSTALL_XDEBUG:-false}
container_name: mortgage-php
working_dir: /application
user: ${CURRENT_UID:-1000}
volumes:
- .:/application
- ./envoirment/dev/php/php.ini:/usr/local/etc/php/conf.d/php.ini
networks:
- mortgage-dev
restart: unless-stopped
database:
image: mysql:8.0
container_name: mortgage-db-dev
environment:
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
ports:
- ${EXTERNAL_DATABASE_PORT:-3306}:3306
volumes:
- mortgage-mysql-data:/var/lib/mysql
networks:
- mortgage-dev
restart: unless-stopped
database-test:
image: mysql:8.0
container_name: mortgage-db-test
environment:
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
ports:
- ${EXTERNAL_TEST_DATABASE_PORT:-3307}:3306
networks:
- mortgage-dev
restart: unless-stopped
node:
image: node:18.4-alpine3.16
container_name: mortgage-node
working_dir: /application
volumes:
- .:/application
ports:
- ${EXTERNAL_NODE_PORT:-3000}:3000
networks:
- mortgage-dev
stdin_open: true
tty: true
restart: unless-stopped
networks:
mortgage-dev:
driver: bridge
volumes:
mortgage-mysql-data:
name: mortgage-mysql-data