-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.local.yml
54 lines (53 loc) · 1.12 KB
/
docker-compose.local.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
50
51
52
53
54
services:
db:
container_name: ghostgres
image: postgres:15.3-alpine
restart: always
env_file:
- ./backend/.env.local
volumes:
- db_data_local:/var/lib/postgresql/data
expose:
- 5432
networks:
- ghostnetwork_local
server:
container_name: ghostserver
depends_on:
- db
image: server
env_file:
- ./backend/.env.local
build:
context: .
dockerfile: ./backend/Dockerfile
volumes:
- server_static_files_local:/app/backend/public
ports:
- 3000:3000
networks:
- ghostnetwork_local
init: true
client:
container_name: ghostclient
depends_on:
- server
image: client
build:
context: .
dockerfile: ./frontend/local.Dockerfile
args:
- VITE_BASE_URL=http://localhost:3000
- VITE_API_URL=http://localhost:3000/api/v1
- VITE_ASSET_URL=http://localhost:3000
ports:
- 5173:5173
networks:
- ghostnetwork_local
networks:
ghostnetwork_local:
name: ghostnetwork_local
driver: bridge
volumes:
db_data_local:
server_static_files_local: