This repository has been archived by the owner on Jun 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
142 lines (131 loc) · 3.25 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
version: "3.8"
services:
web:
image: nginx:1.23-alpine
container_name: intern-web
working_dir: /application
volumes:
- .:/application
- ./environment/dev/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
networks:
- intern-dev
ports:
- ${EXTERNAL_WEBSERVER_PORT}:${EXTERNAL_WEBSERVER_PORT}
restart: unless-stopped
depends_on:
- php
- database
php:
build:
context: ./environment/dev/php
args:
INSTALL_XDEBUG: ${DOCKER_INSTALL_XDEBUG:-false}
container_name: intern-php
working_dir: /application/backend
user: ${CURRENT_UID:-1000}
volumes:
- .:/application
- ./environment/dev/php/php.ini:/usr/local/etc/php/conf.d/php.ini
networks:
- intern-dev
extra_hosts:
- host.docker.internal:host-gateway
restart: unless-stopped
database:
image: mysql:8.0
container_name: intern-mysql
volumes:
- intern-mysql-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${DOCKER_DEV_DB_ROOT_PASSWORD}
- MYSQL_DATABASE=${DOCKER_DEV_DB_DATABASE}
- MYSQL_USER=${DOCKER_DEV_DB_USERNAME}
- MYSQL_PASSWORD=${DOCKER_DEV_DB_PASSWORD}
networks:
- intern-dev
ports:
- ${DOCKER_DEV_DB_EXTERNAL_PORT:-3306}:3306
restart: unless-stopped
database-test:
image: mysql:8.0
container_name: intern-mysql-test
environment:
- MYSQL_ROOT_PASSWORD=${DOCKER_TEST_DB_ROOT_PASSWORD}
- MYSQL_DATABASE=${DOCKER_TEST_DB_DATABASE}
- MYSQL_USER=${DOCKER_TEST_DB_USERNAME}
- MYSQL_PASSWORD=${DOCKER_TEST_DB_PASSWORD}
networks:
- intern-dev
ports:
- ${DOCKER_TEST_DB_EXTERNAL_PORT:-3306}:3306
restart: unless-stopped
redis:
image: redis:7
container_name: intern-redis
ports:
- ${FORWARD_REDIS_PORT:-6379}:6379
volumes:
- intern-redis-data:/data
networks:
- intern-dev
restart: unless-stopped
node:
image: node:18.7.0-alpine3.16
container_name: intern-node
env_file:
- .env
working_dir: /application/frontend
tty: true
user: ${CURRENT_UID}
volumes:
- .:/application
networks:
- intern-dev
ports:
- ${EXTERNAL_NODE_PORT:-5173}:${EXTERNAL_NODE_PORT:-5173}
restart: unless-stopped
node-docs:
image: node:18.7.0-alpine3.16
container_name: intern-docs
env_file:
- .env
working_dir: /application/docs
tty: true
user: ${CURRENT_UID}
volumes:
- .:/application
networks:
- intern-dev
ports:
- ${EXTERNAL_DOCS_PORT:-8080}:${EXTERNAL_DOCS_PORT:-8080}
mailhog:
image: mailhog/mailhog:v1.0.1
container_name: intern-mailhog
ports:
- ${MAIL_PORT}:1025
- ${MAILHOG_DASHBOARD_PORT}:8025
networks:
- intern-dev
restart: unless-stopped
selenium:
image: selenium/standalone-chrome
container_name: intern-selenium
depends_on:
- web
volumes:
- /dev/shm:/dev/shm
networks:
- intern-dev
ports:
- ${SELENIUM_PORT}:${SELENIUM_PORT}
restart: unless-stopped
networks:
intern-dev:
driver: bridge
external: false
name: intern-dev
volumes:
intern-mysql-data:
name: intern-mysql-data
intern-redis-data:
name: intern-redis-data