-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (40 loc) · 987 Bytes
/
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
services:
mysqldb:
image: mariadb:10.4.25
container_name: mysql-db
environment:
MYSQL_DATABASE: $MYSQL_DATABASE
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
MYSQL_PASSWORD: $MYSQL_PASSWORD
ports:
- "$MYSQL_LOCAL_PORT:$MYSQL_PORT"
env_file:
- .env
backend:
depends_on: [mysqldb]
image: ahmedbenromdhane/intelegance:back-end
ports:
- "$BACKEND_LOCAL_PORT:$BACKEND_PORT"
env_file:
- .env
migration:
depends_on: [mysqldb]
build:
context: ./back-end
dockerfile: Dockerfile-migration
frontend:
build: ahmedbenromdhane/intelegance:latest
ports:
- "$FRONTEND_LOCAL_PORT:$FRONTEND_PORT"
env_file:
- .env
phpmyadmin:
depends_on: [mysqldb]
image: phpmyadmin/phpmyadmin
ports:
- "$PHPMYADMIN_LOCAL_PORT:$PHPMYADMIN_PORT"
environment:
PMA_HOST: $PMA_HOST
PMA_PORT: $PMA_PORT
PMA_USER: $PMA_USER
PMA_PASSWORD: $PMA_PASSWORD