-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdev-compose.yaml
More file actions
39 lines (38 loc) · 849 Bytes
/
dev-compose.yaml
File metadata and controls
39 lines (38 loc) · 849 Bytes
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
# // for development and building the app
services:
nginx:
build:
context: ./app
args:
VITE_API_HOST: /v1
restart: always
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- 8000:80
depends_on:
- server
db:
image: postgres:latest
container_name: boutique_db
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: "3503"
POSTGRES_DB: Boutique
ports:
- "5432:5432"
volumes:
- ./data:/var/lib/postgresql/data
server:
build:
context: ./server
dockerfile: Dockerfile
restart: always
environment:
- DATABASE_URL=postgres://postgres:3503@boutique_db:5432/Boutique?schema=public
ports:
- "3000:3000"
depends_on:
- db
command: ["/bin/sh", "-c", "./start.sh"]