-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
86 lines (86 loc) · 2.18 KB
/
docker-compose.yaml
File metadata and controls
86 lines (86 loc) · 2.18 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
services:
db:
image: mysql
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: hello
MYSQL_DATABASE: ecam
volumes:
- db_data:/var/lib/mysql
healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-h', 'localhost']
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
adminer:
image: adminer
restart: unless-stopped
environment:
ADMINER_DEFAULT_SERVER: db
ports:
- '8080:8080'
symapi:
build:
context: .
dockerfile: symapi.Dockerfile
target: dev
volumes:
- ./symapi/generated:/app/symapi/generated
develop:
watch:
- path: ./requirements.txt
action: rebuild
- path: ./symapi
target: /app/symapi
action: sync
restart: unless-stopped
ports:
- '8000:8000'
web:
build:
context: .
dockerfile: web.Dockerfile
target: dev
develop:
watch:
- path: ./package.json
action: rebuild
- path: ./prisma
target: /app/prisma
action: rebuild
- path: ./symapi/generated/schema.graphql
target: /app/symapi/generated/schema.graphql
action: rebuild
- path: ./src
target: /app/src
action: sync
- path: ./content
target: /app/content
action: sync
- path: ./public
target: /app/public
action: sync
volumes:
- routes:/app/src/routes/\(generated\)
- node_modules:/app/node_modules
environment:
VITE_AZURE_CLIENT_ID: af790946-79b3-435e-a2a1-f566e09a63f7
VITE_AZURE_TENANT_ID: e3d6f09e-9ba9-4a36-ad75-d9039be4fe29
VITE_AZURE_CLIENT_SECRET: cG-8Q~o_.-xtYPosirjAEZJu5alUccUrsVM2xas1
VITE_AZURE_REDIRECT_URI: http://localhost:3000/auth/callback
VITE_GRAPHQL_URL: http://symapi:8000/graphql
VITE_PASSPHRASE: hello
VITE_SESSION_SECRET: Kr2vM0bSdsPYd0cfuCul7RzWCZR0f34v
DATABASE_URL: mysql://root:hello@db:3306/ecam
ports:
- '3000:3000'
- '4000:4000'
restart: unless-stopped
depends_on:
db:
condition: service_healthy
volumes:
db_data:
routes:
node_modules: