-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
44 lines (44 loc) · 927 Bytes
/
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
name: caso2
services:
backend:
image: backend:production
container_name: backend
build:
context: ./backend
command: sh -c "npm install;npm run dev"
ports:
- 3000:3000
volumes:
- ./backend:/backend
environment:
- PGDATABASE=${PGDATABASE}
- PGUSER=${PGUSER}
- PGPASSWORD=${PGPASSWORD}
- PGHOST=${PGHOST}
frontend:
image: nginx:alpine
container_name: frontend
volumes:
- ./frontend/:/usr/share/nginx/html
database:
env_file:
- .env
image: database:production
container_name: database
build:
context: ./database
environment:
- POSTGRES_DB=${PGDATABASE}
- POSTGRES_USER=${PGUSER}
- POSTGRES_PASSWORD=${PGPASSWORD}
ports:
- 5432:5432
proxy:
image: proxy
container_name: proxy
build: ./proxy
ports:
- 80:80
depends_on:
- frontend
- backend