-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-test-backend.yml
56 lines (55 loc) · 1.36 KB
/
docker-compose-test-backend.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
version: '3.8'
services:
mariadb:
image: docker.io/bitnami/mariadb:10.5
ports:
- '3306:3306'
volumes:
- 'mariadb_data:/bitnami/mariadb'
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_USER=iissi_user
- MARIADB_PASSWORD=iissi$user
- MARIADB_DATABASE=deliverus
- MARIADB_SKIP_TEST_DB=yes
healthcheck:
test: ['CMD', '/opt/bitnami/scripts/mariadb/healthcheck.sh']
interval: 15s
timeout: 5s
retries: 6
networks:
- iissi2is
backend:
build:
context: ./
target: dev
volumes:
- .:/src
- ./DeliverUS-Backend/node_modules:/src/DeliverUS-Backend/node_modules
command: >
sh -c "pwd && ls -la && npm run install:backend && /wait && npm run test:backend"
ports:
- "3000:3000"
- "9229:9229"
depends_on:
- mariadb
environment:
NODE_ENV: development
DEBUG: IISSI2-IS-Backend:*
WAIT_HOSTS: mariadb:3306
WAIT_HOSTS_TIMEOUT: 300
WAIT_SLEEP_INTERVAL: 3
WAIT_HOST_CONNECT_TIMEOUT: 5
env_file:
- ./DeliverUS-Backend/.env.docker
networks:
- iissi2is
networks:
iissi2is:
driver: bridge
volumes:
mariadb_data:
driver: local
node_modules:
driver: local