-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.override.yml
54 lines (50 loc) · 1.02 KB
/
docker-compose.override.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
version: '3.7'
services:
api:
depends_on:
- db
build:
context: api
volumes:
- ./api:/usr/src/app
environment:
VIRTUAL_HOST: api.lvh.me
VIRTUAL_PORT: 8000
PORT: 8000
DATABASE_URL: postgres://postgres:postgres@db:5432/sc-db?connect_timeout=60
ports:
- 8000
web:
build:
context: client
volumes:
- ./client:/usr/src/app
- /usr/src/app/node_modules
- /usr/src/app/build
ports:
- 3000
- 3001:3001
environment:
NODE_ENV: development
VIRTUAL_HOST: lvh.me
VIRTUAL_PORT: 3000
API_URL: http://api.lvh.me
db:
container_name: sc-db
image: postgres:11.4-alpine
ports:
- 5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=saveclub_db
proxy:
build:
context: proxy
args:
- CORS_DOMAIN=api.lvh.me
ports:
- 80:80
volumes:
- /etc/nginx/vhost.d
- /var/run/docker.sock:/tmp/docker.sock:ro