-
Notifications
You must be signed in to change notification settings - Fork 57
/
example-docker-compose.test.yml
53 lines (48 loc) · 1.18 KB
/
example-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
version: '3'
services:
app_test:
container_name: full_app_test
build:
context: .
dockerfile: ./Dockerfile.test
depends_on:
- forum-postgres-test
# - mysql_test
networks:
- forum_test
forum-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:
- forum_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:
# - forum_test
volumes:
api_test:
database_postgres_test:
# database_mysql_test:
networks:
forum_test:
driver: bridge