-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (71 loc) · 1.48 KB
/
docker-compose.yml
File metadata and controls
76 lines (71 loc) · 1.48 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
services:
app:
build:
context: .
dockerfile: ./Dockerfile.dev
command: npm run dev
volumes:
- .:/app
- /app/node_modules
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_HOST=${MYSQL_HOST}
- CLIENT_SECRET=${CLIENT_SECRET}
- VITE_BASE_URL=${VITE_BASE_URL}
- LINEAGE_HASH_SALT=${LINEAGE_HASH_SALT}
ports:
- 5173:5173
- 3000:3000
depends_on:
- db
networks:
- internal
db:
image: mariadb:10
tty: true
volumes:
- dbdata:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
ports:
- 3306:3306
networks:
- internal
testapp:
build:
context: .
dockerfile: ./Dockerfile.dev
command: sleep infinity
volumes:
- .:/app
- /app/node_modules
env_file:
- .env.testing
depends_on:
testdb:
condition: service_healthy
networks:
- testing
testdb:
image: mariadb:10
tty: true
env_file:
- .env.testing
networks:
- testing
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -u $$MYSQL_USER --password=$$MYSQL_PASSWORD
start_period: 10s
interval: 5s
timeout: 5s
retries: 4
volumes:
dbdata:
networks:
internal:
testing: