This repository has been archived by the owner on Oct 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
75 lines (70 loc) · 1.91 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: '3'
services:
api:
build: ./api
container_name: fossil-jackets-api
depends_on:
- db
environment:
API_PORT: $API_PORT
DOMAIN: $DOMAIN
DB_URL: $DB_URL
TOKEN_KEY: $TOKEN_KEY
NODE_ENV: $NODE_ENV
volumes:
- /fossil-jackets-api/node_modules
- ./api:/fossil-jackets-api
app:
build: ./app
container_name: fossil-jackets-app
depends_on:
- api
environment:
BABEL_DISABLE_CACHE: 1
DOMAIN: $DOMAIN
NODE_ENV: $NODE_ENV
REACT_NATIVE_PACKAGER_HOSTNAME: $HOST_IP
ports:
- 19000:19000
- 19001:19001
volumes:
- /fossil-jackets-app/node_modules
- ./app:/fossil-jackets-app
client:
build: ./client
container_name: fossil-jackets-client
depends_on:
- api
environment:
DOMAIN: $DOMAIN
PORT: $CLIENT_PORT
NODE_ENV: $NODE_ENV
volumes:
- /fossil-jackets-client/node_modules
- ./client:/fossil-jackets-client
db:
image: postgres:10.4-alpine
container_name: fossil-jackets-db
environment:
DB_URL: $DB_URL
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
POSTGRES_DB: $POSTGRES_DB
volumes:
- ./db:/db
nginx:
build:
context: ./nginx
args:
API_PORT: $API_PORT
CLIENT_PORT: $CLIENT_PORT
DOMAIN: $DOMAIN
container_name: fossil-jackets-nginx
depends_on:
- api
- client
ports:
- 443:443
volumes:
- ./client/build:/var/www/html
- ./nginx/certificates:/etc/nginx/external