-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (41 loc) · 796 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (41 loc) · 796 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
40
41
version: '3'
services:
postgres:
image: 'postgres:latest'
environment:
- POSTGRES_PASSWORD=postgres_password
nginx:
restart: always
build:
dockerfile: Dockerfile
context: ./nginx/
depends_on:
- api
- client
- postgres
ports:
- '3000:80'
api:
build:
dockerfile: Dockerfile
context: ./api/
depends_on:
- postgres
volumes:
- /usr/app/node_modules
- ./api:/usr/app
environment:
- PGUSER=postgres
- PGPASSWORD=postgres_password
- PGDATABASE=postgres
- PGHOST=postgres
- PGPORT=5432
client:
build:
dockerfile: Dockerfile
context: ./client
depends_on:
- api
volumes:
- /usr/app/node_modules
- ./client:/usr/app