-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.yml
44 lines (42 loc) · 1.01 KB
/
docker-compose.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
version: '3.7'
services:
app:
tty: true
image: node:16
volumes:
- .:/app
- ~/.pnpm-store:/.pnpm-store
- node_modules:/app/node_modules
working_dir: /app
ports:
- '5001:5001'
command: bash -c 'npm install -g pnpm && pnpm install --frozen-lockfile -r && pnpm turbo run dev --filter=backend'
environment:
AUTH0_DOMAIN:
AUTH0_AUDIENCE:
AUTH0_CLIENT_ID:
DATABASE_URL:
depends_on:
- db
db:
image: mysql:latest
command: --lower_case_table_names=1
volumes:
- ./docker/db/data:/var/lib/mysql
- ./docker/db/my.cnf:/etc/mysql/conf.d/my.cnf
ports:
- '3306:3306'
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: fga
MYSQL_PASSWORD: fga
MYSQL_DATABASE: fga
# healthcheck:
# test: mysqladmin ping -h127.0.0.1 -P3306 -u$$MYSQL_USER -p$$MYSQL_PASSWORD
# interval: 10s
# timeout: 10s
# retries: 10
# start_period: 10s
volumes:
node_modules:
driver: local