-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
50 lines (47 loc) · 1.07 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
version: '3.9'
services:
server:
build:
context: .
dockerfile: ./scripts/test.Dockerfile
container_name: field-seating-test-server
working_dir: /var/app
volumes:
- ./src:/var/app/src
- ./prisma:/var/app/prisma
- ./scripts:/var/app/scripts
networks:
- application
depends_on:
- database
- redis
environment:
APP_ENV: test
DATABASE_URL: mysql://root:root@field-seating-test-db:3306/field_seating_test
JWT_SECRET: jwt_secret
SIB_KEY: "sibKey"
EMAIL: YOUR_EMAIL
REDIS_URL: redis://field-seating-test-redis:6379
SENDGRID_SANDBOX_MODE: "true"
database:
image: mysql:8
container_name: field-seating-test-db
platform: linux/amd64
restart: always
environment:
- MYSQL_ROOT_PASSWORD=root
expose:
- 3306
networks:
- application
redis:
image: redis:6.2
container_name: field-seating-test-redis
platform: linux/amd64
restart: always
expose:
- 3306
networks:
- application
networks:
application: