-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yml
49 lines (46 loc) · 1.19 KB
/
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
45
46
47
48
49
services:
ghost:
image: ghost:5-alpine
restart: always
environment:
# see https://ghost.org/docs/config/#configuration-options
database__client: mysql
database__connection__host: db
database__connection__user: root
database__connection__password: example
database__connection__database: ghost
NODE_ENV: development
url: ${BACKEND_API_URL}
volumes:
- ./backend:/var/lib/ghost/content
user: "1000:1000"
ports:
- "1001:2368"
depends_on:
- db
astro:
build:
context: ./frontend
dockerfile: ../infra/dev/astro/Dockerfile
volumes:
- ./frontend:/frontend
ports:
- "1000:1000"
restart: always
stdin_open: true
tty: true
environment:
NODE_ENV: development
GHOST_CONTENT_KEY: ${GHOST_CONTENT_KEY}
GHOST_API_URL: ${GHOST_API_URL}
user: "1000:1000"
# デフォルトのlocalhostだとDockerがバインドしてくれなくてERR_EMPTY_RESPONSEになるので明示的に0.0.0.0を指定
db:
image: mysql:8.0
restart: always
volumes:
- db-store:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: example
volumes:
db-store: