-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
37 lines (37 loc) · 911 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
version: '3.8'
services:
api:
build:
dockerfile: Dockerfile
context: .
target: development
depends_on:
- mariadb
environment:
# localhost
DATABASE_URL: 'mariadb'
NODE_ENV: development
PORT: 3000
command: npm run start:debug
ports:
- "4000:8080"
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
restart: unless-stopped
mariadb:
image: mariadb:latest
ports:
- "3000:3000"
- "9229:9229"
environment:
MYSQL_DATABASE: "alachiq"
MYSQL_USER: "root"
MYSQL_PASSWORD: "MyNewPass"
phpmyadmin:
image: phpmyadmin
restart: always
ports:
- "8081:80"
environment:
- PMA_ARBITRARY=1