-
Notifications
You must be signed in to change notification settings - Fork 50
/
docker-compose.test.yml
55 lines (50 loc) · 1.23 KB
/
docker-compose.test.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
version: '3'
services:
app_test:
container_name: full_app_test
build:
context: .
dockerfile: ./Dockerfile.test
volumes:
- api_test:/app/src/app/
depends_on:
- postgres_test
# - mysql_test
networks:
- fullstack_test
postgres_test:
image: postgres:latest
container_name: full_db_test_postgress
environment:
- POSTGRES_USER=${TEST_DB_USER}
- POSTGRES_PASSWORD=${TEST_DB_PASSWORD}
- POSTGRES_DB=${TEST_DB_NAME}
- DATABASE_HOST=${TEST_DB_HOST}
ports:
- '5555:5432'
volumes:
- database_postgres_test:/var/lib/postgresql/data
networks:
- fullstack_test
# mysql_test:
# image: mysql:5.7
# container_name: full_db_test_mysql
# ports:
# - 3333:3306
# environment:
# - MYSQL_DATABASE=${TEST_DB_NAME}
# - MYSQL_USER=${TEST_DB_USER}
# - MYSQL_PASSWORD=${TEST_DB_PASSWORD}
# - MYSQL_ROOT_PASSWORD=${TEST_DB_PASSWORD}
# - DATABASE_HOST=${TEST_DB_HOST}
# volumes:
# - database_mysql_test:/var/lib/mysql
# networks:
# - fullstack_test
volumes:
api_test:
database_postgres_test:
# database_mysql_test:
networks:
fullstack_test:
driver: bridge