-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
58 lines (54 loc) · 1.22 KB
/
docker-compose.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
services:
nginx:
image: nginx:stable
ports:
- "0.0.0.0:8080:80"
volumes:
- ./docker/configs/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
- ./packages/api:/app
networks:
- internal
depends_on:
- api
- pwa
api:
build:
context: ./docker
target: php
volumes:
- ./docker/configs/php/default.ini:/usr/local/etc/php/conf.d/app.ini:ro
- ./packages/api:/app
networks:
- internal
depends_on:
- db
pwa:
image: node:20-alpine3.18
expose:
- 5173
volumes:
- ./:/app
working_dir: /app
command: yarn workspace pwa run dev --host
networks:
- internal
db:
image: mysql:5.7
healthcheck:
test: "mysql $$MYSQL_DATABASE -u$$MYSQL_USER -p$$MYSQL_PASSWORD -e 'SELECT 1;'"
interval: 5s
timeout: 5s
retries: 5
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=rss-app
- MYSQL_USER=rss-app-user
- MYSQL_PASSWORD=rss-app-password
ports:
- "3306:3306"
networks:
- internal
networks:
internal:
driver: bridge