-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
61 lines (56 loc) · 1.42 KB
/
docker-compose.test.yml
File metadata and controls
61 lines (56 loc) · 1.42 KB
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
# Use root/example as user/password credentials for MySQL databases
version: '3.8'
services:
external-database:
image: mysql
platform: linux/amd64
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: example
MYSQL_DATABASE: humber_bridge
ports:
- "33061:3306"
volumes:
- ./external-database/data:/var/lib/mysql
- ./external-database/init:/docker-entrypoint-initdb.d
web-frontend:
build:
context: ./web-frontend
volumes:
- ./web-frontend:/usr/share/nginx/html
- ./web-frontend/config:/etc/nginx/conf.d
ports:
- "80:80"
internal-database-test:
image: postgres
environment:
- POSTGRES_PASSWORD=example
- POSTGRES_USER=root
- POSTGRES_DB=humber_bridge
ports:
- "33062:5432"
database-ui:
image: adminer
ports:
- 8080:8080
environment:
- ADMINER_DEFAULT_SERVER=external-database
api-gateway:
build:
context: ./api-gateway
target: dev
depends_on:
- internal-database-test
volumes:
- ./api-gateway/src:/home/node/app/src
- ./api-gateway/test:/home/node/app/test
- ./api-gateway/database:/home/node/app/database
- node_modules:/home/node/app/node_modules
command: npm run test:db
ports:
- "3030:3000"
- "9229:9229"
environment:
NODE_ENV: development
volumes:
node_modules: