-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (64 loc) · 1.62 KB
/
docker-compose.yml
File metadata and controls
64 lines (64 loc) · 1.62 KB
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
55
56
57
58
59
60
61
62
63
64
version: "3"
services:
webserver:
depends_on:
- api
build:
context: ./nginx
dockerfile: Dockerfile.dev
container_name: webserver
restart: unless-stopped
ports:
- 80:80
- 443:443
# volumes:
# - /home/ubuntu/rstudio_docker/nginx.conf:/etc/nginx/nginx.conf
# - /home/ubuntu/ssl:/ssl/
postgres:
image: postgres:latest
ports:
- 5432:5432
restart: unless-stopped
# volumes:
# - /c/data/database-data:/var/lib/postgresql/data/
container_name: postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=db_password
- POSTGRES_DB=pinapp
web-app:
depends_on:
- api
build:
context: ./client
dockerfile: Dockerfile.dev
volumes:
- /app/apollo-subscriptions-example/node_modules
ports:
- "3000:3000"
restart: on-failure
container_name: web-app
environment:
- REACT_APP_API_URI=https://localhost:443/graphql
- REACT_APP_WS_URI=wss://localhost:443/subscriptions
api:
depends_on:
- postgres
build:
context: ./server
dockerfile: Dockerfile.dev
ports:
- "3001:3001"
restart: on-failure
container_name: api
volumes:
- /app/apollo-subscriptions-example/node_modules # Inside the container, don't try to override this folder, just leave as is
environment:
# - DEV_DATABASE_URL=postgres://<db_user>:<db_password>@localhost:5432/dev_db
- HOST=localhost
- PORT=3001
- DB=pinapp
- DBHOST=postgres
- DBPORT=5432
- DBUSER=postgres
- DBPASSWORD=db_password