-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yaml
44 lines (44 loc) · 1.07 KB
/
docker-compose.test.yaml
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
version: "3"
services:
backend:
build: ./backend
command: yarn test
environment:
NODE_ENV: "test"
SESSION_SECRET: ${SESSION_SECRET}
DB_PORT: ${DB_PORT}
DB_HOST: ${DB_HOST}
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASS}
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
OWNER_EMAIL: ${OWNER_EMAIL}
OWNER_PASS: ${OWNER_PASS}
VERIFIER_EMAIL: ${VERIFIER_EMAIL}
FRONTEND_PORT: ${FRONTEND_PORT}
BACKEND_PORT: ${BACKEND_PORT}
FRONTEND_URL: ${FRONTEND_URL}
COOKIE_URL: ${COOKIE_URL}
BACKEND_URL: ${BACKEND_URL}
SOCKET_URL: ${SOCKET_URL}
ports:
- 8000:8000
restart: always
depends_on:
- db
- redis
db:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASS}
MYSQL_DATABASE: luncherbox_test
volumes:
- ./sql:/docker-entrypoint-initdb.d
- ./data-sql:/var/lib/mysql
restart: always
redis:
image: redis
command: ["redis-server", "--appendonly", "yes"]
restart: always
volumes:
- ./data-redis:/data