-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (38 loc) · 1013 Bytes
/
docker-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
version: '3'
services:
my-postgres-server:
image: 'postgres'
environment:
- POSTGRES_PASSWORD=${PGPASSWORD}
my-redis-server:
image: 'redis'
nginx:
restart: always
build:
dockerfile: Dockerfile.dev
context: ./nginx
ports:
- '8080:80'
backend:
build:
dockerfile: Dockerfile.dev
context: ./backend
volumes:
- /opt/app/node_modules
- ./backend:/opt/app
environment:
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- PGUSER=${PGUSER}
- PGHOST=${PGHOST}
- PGDATABASE=${PGDATABASE}
- PGPASSWORD=${PGPASSWORD}
- PGPORT=${PGPORT}
frontend:
build:
dockerfile: Dockerfile.dev
context: ./frontend
volumes:
- /opt/app/node_modules
- ./frontend:/opt/app
tty: true